Moving docker file to a docker folder

This commit is contained in:
Oscar Vicente Perez 2023-08-15 11:25:23 +02:00
commit f603b550f6
3 changed files with 5 additions and 3 deletions

View file

@ -4,7 +4,9 @@ services:
n8n:
image: n8n-custom-nodes
restart: unless-stopped
build: .
build:
dockerfile: ./docker/Dockerfile
context: .
ports:
- "5678:5678"
environment:

View file

@ -1,6 +1,6 @@
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
WORKDIR /build
COPY . .
@ -11,7 +11,7 @@ FROM target as final
WORKDIR /custom-nodes
COPY --from=build /build .
COPY --from=build /build/run.sh /run.sh
COPY --from=build /build/docker/run.sh /run.sh
WORKDIR /custom-nodes
USER root