Spaces:
Sleeping
Sleeping
Upload Dockerfile with huggingface_hub
Browse files- 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 |
-
#
|
| 44 |
-
|
| 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 \
|