GTO-Custom-AI commited on
Commit
3fbcd86
·
verified ·
1 Parent(s): afac3e2

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -3
Dockerfile CHANGED
@@ -40,9 +40,8 @@ RUN apk add --no-cache \
40
  COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
41
  COPY --from=build /usr/local/bin/n8n /usr/local/bin/n8n
42
 
43
- # Create the non-root user that n8n will run as (uid/gid 1000)
44
- RUN addgroup -g 1000 n8n && \
45
- adduser -u 1000 -G n8n -s /bin/bash -D n8n
46
 
47
  # ---------- Environment -------------------------------------------------------
48
  ENV N8N_PORT=7860 \
 
40
  COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
41
  COPY --from=build /usr/local/bin/n8n /usr/local/bin/n8n
42
 
43
+ # Note: node:22-alpine already provides user "node" at uid/gid 1000.
44
+ # No addgroup/adduser needed — start.sh uses su-exec 1000:1000.
 
45
 
46
  # ---------- Environment -------------------------------------------------------
47
  ENV N8N_PORT=7860 \