mirror of
https://github.com/n8n-io/n8n-nodes-starter.git
synced 2025-10-29 14:22:26 -05:00
Moving docker file to a docker folder
This commit is contained in:
parent
bec242d841
commit
f603b550f6
3 changed files with 5 additions and 3 deletions
|
|
@ -4,7 +4,9 @@ services:
|
||||||
n8n:
|
n8n:
|
||||||
image: n8n-custom-nodes
|
image: n8n-custom-nodes
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
build: .
|
build:
|
||||||
|
dockerfile: ./docker/Dockerfile
|
||||||
|
context: .
|
||||||
ports:
|
ports:
|
||||||
- "5678:5678"
|
- "5678:5678"
|
||||||
environment:
|
environment:
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
FROM docker.n8n.io/n8nio/n8n:latest AS target
|
FROM docker.n8n.io/n8nio/n8n:latest AS target
|
||||||
|
|
||||||
FROM node:19-alpine AS build
|
FROM node:18-alpine AS build
|
||||||
RUN npm i npm@latest -g
|
RUN npm i npm@latest -g
|
||||||
WORKDIR /build
|
WORKDIR /build
|
||||||
COPY . .
|
COPY . .
|
||||||
|
|
@ -11,7 +11,7 @@ FROM target as final
|
||||||
WORKDIR /custom-nodes
|
WORKDIR /custom-nodes
|
||||||
|
|
||||||
COPY --from=build /build .
|
COPY --from=build /build .
|
||||||
COPY --from=build /build/run.sh /run.sh
|
COPY --from=build /build/docker/run.sh /run.sh
|
||||||
|
|
||||||
WORKDIR /custom-nodes
|
WORKDIR /custom-nodes
|
||||||
USER root
|
USER root
|
||||||
Loading…
Add table
Add a link
Reference in a new issue