Add first docker and docker-compose support

This commit is contained in:
Oscar Vicente Perez 2023-08-14 16:28:23 +02:00
commit bec242d841
5 changed files with 46 additions and 1 deletions

21
Dockerfile Normal file
View 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" ]