GTO-Custom-AI commited on
Commit
1a73f86
·
verified ·
1 Parent(s): ce09bf1

Upload Dockerfile with huggingface_hub

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -39,7 +39,9 @@ RUN apk add --no-cache \
39
 
40
  # Copy the globally-installed n8n from the build stage
41
  COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
42
- COPY --from=build /usr/local/bin/n8n /usr/local/bin/n8n
 
 
43
 
44
  # Note: node:22-alpine already provides user "node" at uid/gid 1000.
45
  # No addgroup/adduser needed — start.sh uses su-exec 1000:1000.
 
39
 
40
  # Copy the globally-installed n8n from the build stage
41
  COPY --from=build /usr/local/lib/node_modules /usr/local/lib/node_modules
42
+
43
+ # Re-link the n8n binary from source (the copied symlink may be broken)
44
+ RUN ln -sf /usr/local/lib/node_modules/n8n/bin/n8n /usr/local/bin/n8n
45
 
46
  # Note: node:22-alpine already provides user "node" at uid/gid 1000.
47
  # No addgroup/adduser needed — start.sh uses su-exec 1000:1000.