Skip to content

Commit 6589686

Browse files
author
Dawid Ciepiela
committed
Revert "reduce size of container"
This reverts commit ca610a5.
1 parent ca610a5 commit 6589686

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

Dockerfile

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
FROM python:3.10-slim AS builder
1+
FROM python:3.10-slim AS base
2+
3+
FROM base as builder
24

35
RUN python -m pip install --no-cache-dir -U pip wheel
46

57
COPY ./requirements.txt /tmp/
68

79
RUN python -OO -m pip wheel --no-cache-dir --wheel-dir=/tmp/wheels -r /tmp/requirements.txt
810

9-
FROM gcr.io/distroless/python3:latest AS final
10-
11+
FROM base
1112
COPY --from=builder /tmp/wheels /tmp/wheels
1213

1314
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/* && \
1718
ADD ./src /app/src
1819
ADD ./config.env /app/config.env
1920

20-
ENV APP_RUN_MODE=PROD
21-
22-
WORKDIR /app/src
23-
24-
ENTRYPOINT [ "python" ]
25-
CMD [ "-OO", "-B", "main.py"]
21+
CMD APP_RUN_MODE=PROD python -OO -B /app/src/main.py

0 commit comments

Comments
 (0)