Browse Source
* Update base image for get-checksum to gcr.io/distroless/python3-debian12:nonroot * Update base image in version-bump to gcr.io/distroless/python3-debian12:nonroot * Remove unnecessary pip install commands from Dockerfile * Refactor Dockerfile to use python:3-slim base image and streamline package installation * Refactor Dockerfile to improve build process and update main.py to use xml.etree.ElementTree * Add step to fix file permissions in test-version-bump workflow * Remove file permission fix step from test-version-bump workflow and update Dockerfile to use non-root base image * Update crowdinpull/343/head
4 changed files with 13 additions and 16 deletions
@ -1,12 +1,9 @@ |
|||||||
FROM python:3-slim |
FROM gcr.io/distroless/python3-debian12:nonroot |
||||||
|
|
||||||
ADD . /app |
ADD . /app |
||||||
|
|
||||||
WORKDIR /app |
WORKDIR /app |
||||||
|
|
||||||
RUN pip3 install lxml --target=/app |
ENV PYTHONPATH=/app |
||||||
RUN pip3 install pyyaml --target=/app |
|
||||||
|
|
||||||
ENV PYTHONPATH /app |
|
||||||
|
|
||||||
ENTRYPOINT [ "python", "/app/main.py" ] |
ENTRYPOINT [ "python", "/app/main.py" ] |
||||||
@ -1,13 +1,13 @@ |
|||||||
FROM python:3-slim |
FROM python:3-slim AS builder |
||||||
|
|
||||||
ADD . /app |
|
||||||
|
|
||||||
WORKDIR /app |
WORKDIR /app |
||||||
|
RUN pip3 install --no-cache-dir pyyaml --target=. |
||||||
|
ADD ./main.py . |
||||||
|
|
||||||
RUN pip3 install lxml --target=/app |
FROM gcr.io/distroless/python3-debian12 |
||||||
RUN pip3 install pyyaml --target=/app |
|
||||||
|
|
||||||
ENV PYTHONPATH /app |
WORKDIR /app |
||||||
|
COPY --from=builder /app /app |
||||||
|
ENV PYTHONPATH=/app |
||||||
|
|
||||||
CMD ["/app/main.py"] |
ENTRYPOINT ["/usr/bin/python3", "-u", "/app/main.py"] |
||||||
ENTRYPOINT [ "python", "-u" ] |
|
||||||
|
|||||||
Loading…
Reference in new issue