1
1
mirror of https://github.com/n8n-io/n8n.git synced 2024-09-11 13:15:28 +03:00

Add full-icu to Dockerfiles

This commit is contained in:
Frane Bandov 2020-03-26 18:05:23 +01:00
parent 51793c72bd
commit b6b63ed48b
3 changed files with 7 additions and 7 deletions

View File

@ -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

View File

@ -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

View File

@ -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;