generated from n8n-io/n8n-nodes-starter
-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (23 loc) · 775 Bytes
/
Dockerfile
File metadata and controls
29 lines (23 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM node:24-alpine
# Install dependencies and n8n as root
RUN apk add --no-cache git && \
npm install -g n8n@latest && \
npm install -g typescript
# Clone, build, and link the plugin as root
RUN git clone --depth 1 https://github.com/run-llama/n8n-llamacloud /tmp/llamacloud && \
cd /tmp/llamacloud && \
npm install && \
npm run build && \
npm link
# Switch to node user and create custom directory
USER node
WORKDIR /home/node
RUN mkdir -p /home/node/.n8n/custom
# Link in the custom directory as node user
WORKDIR /home/node/.n8n/custom
RUN npm link @llamaindex/n8n-nodes-llamacloud
# Cleanup is harder now since we switched users, but the image will still be smaller
# than before due to layer optimization
WORKDIR /home/node
EXPOSE 5678
CMD ["n8n", "start"]