Skip to content

Commit 4cc2ac6

Browse files
Update flask dockerfile
1 parent 09a7723 commit 4cc2ac6

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

devops/tilt/Dockerfile

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
# syntax=docker/dockerfile:1.5
2-
FROM python:3.10.10-slim-buster
2+
3+
ARG PYTHON_VER=${PYTHON_VER:-3.10.10}
4+
5+
FROM python:${PYTHON_VER}-slim-buster
36

47
ENV PYTHONDONTWRITEBYTECODE=1
58
ENV PYTHONUNBUFFERED=1
69

710
WORKDIR /app
811

912
COPY requirements.txt .
10-
RUN pip install --upgrade pip \
11-
&& pip install -r requirements.txt
13+
14+
RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
15+
1216
COPY . .
1317

1418
ENTRYPOINT ["python", "/app/app.py"]

0 commit comments

Comments
 (0)