mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-11-30 19:03:33 -06:00
Add first docker and docker-compose support
This commit is contained in:
parent
c1320ac047
commit
bec242d841
5 changed files with 46 additions and 1 deletions
21
Dockerfile
Normal file
21
Dockerfile
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
FROM docker.n8n.io/n8nio/n8n:latest AS target
|
||||
|
||||
FROM node:19-alpine AS build
|
||||
RUN npm i npm@latest -g
|
||||
WORKDIR /build
|
||||
COPY . .
|
||||
|
||||
RUN npm run build
|
||||
|
||||
FROM target as final
|
||||
WORKDIR /custom-nodes
|
||||
|
||||
COPY --from=build /build .
|
||||
COPY --from=build /build/run.sh /run.sh
|
||||
|
||||
WORKDIR /custom-nodes
|
||||
USER root
|
||||
RUN npm link
|
||||
|
||||
USER node
|
||||
ENTRYPOINT [ "tini", "--", "/run.sh" ]
|
||||
Loading…
Add table
Add a link
Reference in a new issue