From 24e695807f55016a97a2fbde0961dd9038c5037b Mon Sep 17 00:00:00 2001 From: Foad Jafarinejad Date: Fri, 11 Oct 2024 12:03:23 +0200 Subject: [PATCH] Change base docker image to python3-slim --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index 3f14a94..511ae89 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,10 @@ -FROM python:3-slim AS builder -ADD . /app +FROM python:3.13-slim + +COPY . /app WORKDIR /app # We are installing a dependency here directly into our app source dir RUN pip install --target=/app -r requirements.txt -# A distroless container image with Python and some basics like SSL certificates -# https://github.com/GoogleContainerTools/distroless -FROM gcr.io/distroless/python3-debian10 -COPY --from=builder /app /app -WORKDIR /app ENV PYTHONPATH /app -CMD ["/app/main.py"] +CMD ["python", "/app/main.py"]