Skip to content

Commit 8511866

Browse files
committed
Dockerfile: fix the image build
poetry.lock was removed from version control [1], but the Dockerfile was not updated. Also change the base image to python:3.9-bullseye Debian buster has been discontinued [2], so bump to bullseye. And python 3.9 is the minimal requried version at this time. [1] ff326f3 [2] https://www.debian.org/releases/buster/ Signed-off-by: Ihor Solodrai <[email protected]>
1 parent 6e91ff8 commit 8511866

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM python:3.10-buster as builder
1+
FROM python:3.9-bullseye as builder
22

33
RUN pip install poetry
44

@@ -9,13 +9,13 @@ ENV POETRY_NO_INTERACTION=1 \
99

1010
WORKDIR /app
1111

12-
COPY pyproject.toml poetry.lock ./
12+
COPY pyproject.toml /app/pyproject.toml
1313
RUN touch README.md
1414

1515
RUN poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR
1616

1717
# The runtime image, used to just run the code provided its virtual environment
18-
FROM python:3.10-slim-buster as runtime
18+
FROM python:3.9-bullseye as runtime
1919
LABEL maintainer="Ihor Solodrai <[email protected]>"
2020

2121
RUN apt update && \

0 commit comments

Comments
 (0)