We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 710e9f1 commit 8b71285Copy full SHA for 8b71285
api/Dockerfile
@@ -1,4 +1,4 @@
1
-FROM --platform=linux/amd64 python:3.11-slim as base
+FROM --platform=linux/amd64 python:3.12-slim AS base
2
WORKDIR /code
3
CMD ["/code/src/init.sh", "api"]
4
EXPOSE 5000
@@ -13,14 +13,14 @@ RUN pip install --upgrade pip && \
13
COPY pyproject.toml pyproject.toml
14
COPY poetry.lock poetry.lock
15
16
-FROM base as development
+FROM base AS development
17
RUN poetry install
18
WORKDIR /code/src
19
COPY src .
20
USER 1000
21
22
-FROM base as prod
23
-RUN poetry install --no-dev
+FROM base AS prod
+RUN poetry install --without dev
24
25
26
0 commit comments