feat: don't compile python byte code in docker
This commit is contained in:
parent
419eec2baa
commit
44904d80be
|
@ -12,6 +12,8 @@ RUN poetry export --with dev --without-hashes > dev-requirements.txt
|
||||||
|
|
||||||
FROM alpine:3.17 as builder
|
FROM alpine:3.17 as builder
|
||||||
|
|
||||||
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
echo 'installing dependencies' && \
|
echo 'installing dependencies' && \
|
||||||
apk add --no-cache \
|
apk add --no-cache \
|
||||||
|
@ -70,6 +72,8 @@ RUN \
|
||||||
|
|
||||||
FROM alpine:3.17 as image
|
FROM alpine:3.17 as image
|
||||||
|
|
||||||
|
ENV PYTHONDONTWRITEBYTECODE=1
|
||||||
|
|
||||||
COPY --from=builder /venv /venv
|
COPY --from=builder /venv /venv
|
||||||
# emulate activation by prefixing PATH
|
# emulate activation by prefixing PATH
|
||||||
ENV PATH="/venv/bin:$PATH"
|
ENV PATH="/venv/bin:$PATH"
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
Don't compile python byte code in docker
|
Loading…
Reference in New Issue