diff --git a/docker-compose.yml b/docker-compose.yml index f5dcd69..1fbbf58 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -4,7 +4,9 @@ services: n8n: image: n8n-custom-nodes restart: unless-stopped - build: . + build: + dockerfile: ./docker/Dockerfile + context: . ports: - "5678:5678" environment: diff --git a/Dockerfile b/docker/Dockerfile similarity index 78% rename from Dockerfile rename to docker/Dockerfile index bbe7543..e66cbb1 100644 --- a/Dockerfile +++ b/docker/Dockerfile @@ -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 diff --git a/run.sh b/docker/run.sh similarity index 100% rename from run.sh rename to docker/run.sh