Node:lts - no more the error npm run build

DOCKERFILE

FROM node:16.14.0-buster-slim

RUN apt-get update && \
	apt-get -y install graphicsmagick gosu git curl

RUN npm install -g [email protected] && \
	npm_config_user=root npm install -g lerna && \
	npm config set legacy-peer-deps true

ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu

WORKDIR /home/node
RUN git clone https://github.com/n8n-io/n8n.git --single-branch --branch [email protected]
WORKDIR /home/node/n8n

RUN npm install --production --loglevel notice && \
	lerna bootstrap --hoist -- --production && \
	npm run build

CMD	lerna bootstrap --hoist && \
	npm run build && \
	./packages/cli/bin/n8n

EXPOSE 5678/tcp

docker-compose.yml

services:
  appn8n:
    image: myown/n8n
    restart: unless-stopped
    ports:
      - 5678:5678
    environment:
      - N8N_BASIC_AUTH_ACTIVE
      - N8N_BASIC_AUTH_USER
      - N8N_BASIC_AUTH_PASSWORD      
      - NODE_ENV
      - GENERIC_TIMEZONE
      - N8N_HOST
      - N8N_LOG_LEVEL
      - DB_TYPE
      - DB_MYSQLDB_DATABASE
      - DB_MYSQLDB_HOST
      - DB_MYSQLDB_PORT
      - DB_MYSQLDB_USER
      - DB_MYSQLDB_PASSWORD
    volumes:
      - "./.n8n/:/root/.n8n/"
      - "./packages/nodes-base/package.json:/home/node/n8n/packages/nodes-base/package.json"

      - "./packages/nodes-base/nodes/Qonto/:/home/node/n8n/packages/nodes-base/nodes/Qonto/"
      - "./packages/nodes-base/credentials/QontoApi.credentials.ts:/home/node/n8n/packages/nodes-base/credentials/QontoApi.credentials.ts"
      - "./packages/nodes-base/credentials/QontoOAuth2Api.credentials.ts:/home/node/n8n/packages/nodes-base/credentials/QontoOAuth2Api.credentials.ts"
1 Like