Skip to content

Commit

Permalink
revert to what works
Browse files Browse the repository at this point in the history
  • Loading branch information
tamsinforbes committed Apr 16, 2024
1 parent de35150 commit d1cd8fa
Showing 1 changed file with 9 additions and 19 deletions.
28 changes: 9 additions & 19 deletions python-malformed-yaml/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,24 +1,14 @@
FROM python:3.12.0-alpine3.17
FROM python:3-slim AS builder
ADD . /app
WORKDIR /app

# We are installing a dependency here directly into our app source dir
RUN pip install --target=/app PyYaml
RUN chown appuser:appgroup /app

ENTRYPOINT [ "/app/main.py" ]


# FROM python:3-slim AS builder
# ADD . /app
# WORKDIR /app

# # We are installing a dependency here directly into our app source dir
# RUN pip install --target=/app PyYaml

# # 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"]
# 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"]

0 comments on commit d1cd8fa

Please sign in to comment.