mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
build: Migrate from lerna to turborepo (#3796)
* feat: Added turborepo setup. * feat: Updated nodes and credentials loading. * feat: Removed remaining lerna references. * fix: Updated npm run bootstrap command. * feat: Added CI step for installing latest npm. * chore: Removed lerna config. * feat: Added gulp to global ci packages. * fix: Set node as moduleResolution target in workflow. Fixed CI. * fix: Added turborepo installation to the n8n-custom docker image. * fix: Updated copied docker files for n8n-custom. * fix: Added git as dependency in n8n-custom dockerfile. * fix: Changed npm install command in n8n-custom. * 📦 Update `package-lock.json` Co-authored-by: Iván Ovejero <ivov.src@gmail.com>
This commit is contained in:
@@ -5,12 +5,12 @@ FROM node:16-alpine as builder
|
||||
USER root
|
||||
|
||||
# Install all needed dependencies
|
||||
RUN apk --update add --virtual build-dependencies python3 build-base ca-certificates && \
|
||||
npm_config_user=root npm install -g lerna run-script-os
|
||||
RUN apk --update add --virtual build-dependencies python3 build-base ca-certificates git && \
|
||||
npm_config_user=root npm install -g npm@latest run-script-os turbo
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
COPY lerna.json .
|
||||
COPY turbo.json .
|
||||
COPY package.json .
|
||||
COPY package-lock.json .
|
||||
COPY packages/cli/ ./packages/cli/
|
||||
@@ -22,8 +22,7 @@ COPY packages/workflow/ ./packages/workflow/
|
||||
RUN rm -rf node_modules packages/*/node_modules packages/*/dist
|
||||
|
||||
RUN npm config set legacy-peer-deps true
|
||||
RUN npm install --production --loglevel notice
|
||||
RUN lerna bootstrap --hoist -- --production
|
||||
RUN npm install --loglevel notice
|
||||
RUN npm run build
|
||||
|
||||
|
||||
@@ -37,7 +36,7 @@ RUN apk add --update graphicsmagick tzdata tini su-exec git
|
||||
WORKDIR /data
|
||||
|
||||
# Install all needed dependencies
|
||||
RUN npm_config_user=root npm install -g full-icu
|
||||
RUN npm_config_user=root npm install -g npm@latest full-icu
|
||||
|
||||
# Install fonts
|
||||
RUN apk --no-cache add --virtual fonts msttcorefonts-installer fontconfig && \
|
||||
|
||||
@@ -11,7 +11,7 @@ RUN \
|
||||
# Set a custom user to not have n8n run as root
|
||||
USER root
|
||||
|
||||
RUN npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION}
|
||||
RUN npm_config_user=root npm install -g npm@latest full-icu n8n@${N8N_VERSION}
|
||||
|
||||
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ RUN \
|
||||
# Set a custom user to not have n8n run as root
|
||||
USER root
|
||||
|
||||
RUN npm_config_user=root npm install -g n8n@${N8N_VERSION}
|
||||
RUN npm_config_user=root npm install -g npm@latest n8n@${N8N_VERSION}
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@ USER root
|
||||
# it needs to build it correctly.
|
||||
RUN apk --update add --virtual build-dependencies python3 build-base ca-certificates && \
|
||||
npm config set python "$(which python3)" && \
|
||||
npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} && \
|
||||
npm_config_user=root npm install -g npm@latest full-icu n8n@${N8N_VERSION} && \
|
||||
apk del build-dependencies \
|
||||
&& rm -rf /root /tmp/* /var/cache/apk/* && mkdir /root;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user