Skip to content

Commit

Permalink
still got some errors in python app yet lets go
Browse files Browse the repository at this point in the history
  • Loading branch information
shrtkv committed Nov 17, 2023
1 parent e80c0ba commit 1d73b7d
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
FROM python:3.9 as build-env
FROM cgr.dev/chainguard/python:latest-dev as build-env
WORKDIR /app
COPY ../app/requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
RUN pip3 install --no-cache-dir pip==23.3 setuptools==65.5.1
COPY app/requirements.txt .
RUN pip3 install --upgrade pip && pip install --no-cache-dir -r requirements.txt
RUN pip3 list && sleep 20

FROM gcr.io/distroless/python3-debian10
FROM cgr.dev/chainguard/python:latest
WORKDIR /app
COPY --from=build-env /usr/local/lib/python3.9/site-packages /usr/local/lib/python3.9/site-packages
COPY --from=build-env /home/nonroot/.local/lib/python3.11/site-packages /home/nonroot/.local/lib/python3.11/site-packages
COPY ../app/app.py .
COPY ../app/static/ static/
COPY ../app/templates/ templates/
CMD ["app.py"]

#CMD ["app.py"]
ENTRYPOINT ["flask", "run", "--host=0.0.0.0"]

0 comments on commit 1d73b7d

Please sign in to comment.