mirror of
https://github.com/windmill-labs/windmill.git
synced 2026-09-11 08:07:15 +00:00
fix(debugger): add non-root user support to Dockerfile (#9277)
Mirrors the main Windmill Dockerfile pattern: creates a windmill user (UID/GID 1000) and makes cache/work directories world-writable so the image runs cleanly under Kubernetes securityContext.runAsNonRoot or runAsUser: 1000 without permission errors on Bun, pip, or windmill cache writes. Fixes WIN-1969 Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
committed by
Diego Imbert
co-authored by
Claude Opus 4.7
parent
7ca3e4ffd1
commit
cbbff01fbe
@@ -51,6 +51,14 @@ COPY dap_websocket_server.py .
|
||||
# Expose the default port
|
||||
EXPOSE 5679
|
||||
|
||||
# Create a non-root user 'windmill' with UID and GID 1000 (mirrors main Windmill image)
|
||||
RUN addgroup --gid 1000 windmill && \
|
||||
adduser --disabled-password --gecos "" --uid 1000 --gid 1000 windmill
|
||||
|
||||
# Ensure cache and work directories are writable by any UID
|
||||
RUN mkdir -p /tmp/windmill/cache /tmp/windmill/cache_nomount /tmp/.cache && \
|
||||
chmod -R 777 /tmp/windmill /tmp/.cache /app
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=5s --start-period=5s --retries=3 \
|
||||
CMD curl -f http://localhost:5679/health || exit 1
|
||||
|
||||
Reference in New Issue
Block a user