feat: don't compile python byte code in docker

environments/review-docs-docs-p5xm4f/deployments/16617
jo 2023-01-11 16:21:16 +01:00
rodzic 419eec2baa
commit 44904d80be
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: B2FEC9B22722B984
2 zmienionych plików z 5 dodań i 0 usunięć

Wyświetl plik

@ -12,6 +12,8 @@ RUN poetry export --with dev --without-hashes > dev-requirements.txt
FROM alpine:3.17 as builder
ENV PYTHONDONTWRITEBYTECODE=1
RUN \
echo 'installing dependencies' && \
apk add --no-cache \
@ -70,6 +72,8 @@ RUN \
FROM alpine:3.17 as image
ENV PYTHONDONTWRITEBYTECODE=1
COPY --from=builder /venv /venv
# emulate activation by prefixing PATH
ENV PATH="/venv/bin:$PATH"

Wyświetl plik

@ -0,0 +1 @@
Don't compile python byte code in docker