feat: add conditional Python 3 and pip installation via ENABLE_PYTHON build argument.

This commit is contained in:
viettranx committed 2026-03-08 16:58:43 +07:00
1 parent 454fed11fb
commit d70e58ae41
1 file changed
+5 -1
+5 -1
View File
@@ -37,12 +37,16 @@ RUN set -eux; \
FROM alpine:3.22
ARG ENABLE_SANDBOX=false
ARG ENABLE_PYTHON=false
# Install ca-certificates + wget (healthcheck) + optionally docker-cli (sandbox)
# Install ca-certificates + wget (healthcheck) + optionally docker-cli (sandbox) + python3
RUN set -eux; \
apk add --no-cache ca-certificates wget; \
if [ "$ENABLE_SANDBOX" = "true" ]; then \
apk add --no-cache docker-cli; \
fi; \
if [ "$ENABLE_PYTHON" = "true" ]; then \
apk add --no-cache python3 py3-pip; \
fi
# Non-root user