Skip to content

Commit

Permalink
Fix on docker by using slim image instead of distroless (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
kerto07 authored Jul 24, 2024
1 parent 21ac853 commit c2b43e4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
FROM python:3.9-slim AS build-env

WORKDIR /app
COPY requirements.txt /app/
RUN pip install -r requirements.txt
COPY . /app/

FROM gcr.io/distroless/python3
COPY --from=build-env /app /app
COPY --from=build-env /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
WORKDIR /app
EXPOSE 9877
ENV PYTHONPATH=/usr/local/lib/python3.9/site-packages
Expand Down

0 comments on commit c2b43e4

Please sign in to comment.