mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-13 16:14:57 +00:00
feat: add conditional Python 3 and pip installation via ENABLE_PYTHON build argument.
This commit is contained in:
1 parent
454fed11fb
commit
d70e58ae41
1 file changed
+5
-1
+5
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user