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 ca610a5 commit 6589686Copy full SHA for 6589686
Dockerfile
@@ -1,13 +1,14 @@
1
-FROM python:3.10-slim AS builder
+FROM python:3.10-slim AS base
2
+
3
+FROM base as builder
4
5
RUN python -m pip install --no-cache-dir -U pip wheel
6
7
COPY ./requirements.txt /tmp/
8
9
RUN python -OO -m pip wheel --no-cache-dir --wheel-dir=/tmp/wheels -r /tmp/requirements.txt
10
-FROM gcr.io/distroless/python3:latest AS final
-
11
+FROM base
12
COPY --from=builder /tmp/wheels /tmp/wheels
13
14
RUN python -m pip install --no-cache --no-index /tmp/wheels/* && \
@@ -17,9 +18,4 @@ RUN python -m pip install --no-cache --no-index /tmp/wheels/* && \
17
18
ADD ./src /app/src
19
ADD ./config.env /app/config.env
20
-ENV APP_RUN_MODE=PROD
21
22
-WORKDIR /app/src
23
24
-ENTRYPOINT [ "python" ]
25
-CMD [ "-OO", "-B", "main.py"]
+CMD APP_RUN_MODE=PROD python -OO -B /app/src/main.py
0 commit comments