1
1
# While optional this tells the Docker builder of the version
2
2
# syntax=docker/dockerfile:1
3
- ARG PYTHON_VERSION=3.11.1 -slim-bullseye
3
+ ARG PYTHON_VERSION=3.11.4 -slim-bullseye
4
4
5
5
# Base image for Python applications
6
6
# This image is particularly for a web server using uvicorn
@@ -11,16 +11,23 @@ EXPOSE 80
11
11
12
12
# Update the based image to latest versions of packages
13
13
# python 3.10 seems to want python3-tk installed
14
- RUN apt-get update \
15
- && apt-get -y upgrade \
16
- && apt-get install -y --no-install-recommends gcc python3-dev build-essential libpq-dev python3-tk postgresql-client \
17
- && apt-get clean \
14
+ RUN apt update \
15
+ && apt -y upgrade \
16
+ && apt install -y --no-install-recommends gcc python3-dev \
17
+ build-essential libpq-dev python3-tk postgresql-client curl \
18
+ && apt clean \
18
19
&& rm -rf /var/lib/apt/lists/*
19
20
21
+ # Install task from their servers, not this requires curl
22
+ # so you must only have this tkas post the apt updates
23
+ RUN sh -c "$(curl --location https://taskfile.dev/install.sh)" \
24
+ -- -d -b /usr/local/bin
25
+
20
26
# Copy the files in the src directory which is the app package
21
27
# and the dependency matrix dedescribed by pyproject.toml
22
28
WORKDIR /opt/${PROJ_NAME}
23
29
COPY ./src/. .
30
+ COPY Taskfile.prod.yml Taskfile.yml
24
31
25
32
# Ask poetry to install all packages including the app
26
33
# not in virtual machine as we are in a container
0 commit comments