mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 18:12:04 +00:00
Add full-icu to Dockerfiles
This commit is contained in:
@@ -11,7 +11,9 @@ 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 full-icu n8n@${N8N_VERSION}
|
||||
|
||||
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
FROM node:12.13.0-alpine
|
||||
FROM node:12.16-alpine
|
||||
|
||||
ARG N8N_VERSION
|
||||
|
||||
@@ -13,9 +13,11 @@ USER root
|
||||
# Install n8n and the also temporary all the packages
|
||||
# it needs to build it correctly.
|
||||
RUN apk --update add --virtual build-dependencies python build-base ca-certificates && \
|
||||
npm_config_user=root npm install -g n8n@${N8N_VERSION} && \
|
||||
npm_config_user=root npm install -g full-icu n8n@${N8N_VERSION} && \
|
||||
apk del build-dependencies
|
||||
|
||||
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
COPY docker-entrypoint.sh /docker-entrypoint.sh
|
||||
|
||||
@@ -20,10 +20,6 @@ import {
|
||||
} from "../src";
|
||||
|
||||
|
||||
// // Add support for internationalization
|
||||
// const fullIcuPath = require.resolve('full-icu');
|
||||
// process.env.NODE_ICU_DATA = dirname(fullIcuPath);
|
||||
|
||||
let activeWorkflowRunner: ActiveWorkflowRunner.ActiveWorkflowRunner | undefined;
|
||||
let processExistCode = 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user