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 # Set a custom user to not have n8n run as root
USER 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 WORKDIR /data

View file

@ -1,4 +1,4 @@
FROM node:12.13.0-alpine FROM node:12.16-alpine
ARG N8N_VERSION ARG N8N_VERSION
@ -13,9 +13,11 @@ USER root
# Install n8n and the also temporary all the packages # Install n8n and the also temporary all the packages
# it needs to build it correctly. # it needs to build it correctly.
RUN apk --update add --virtual build-dependencies python build-base ca-certificates && \ 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 apk del build-dependencies
ENV NODE_ICU_DATA /usr/local/lib/node_modules/full-icu
WORKDIR /data WORKDIR /data
COPY docker-entrypoint.sh /docker-entrypoint.sh COPY docker-entrypoint.sh /docker-entrypoint.sh

View file

@ -20,10 +20,6 @@ import {
} from "../src"; } 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 activeWorkflowRunner: ActiveWorkflowRunner.ActiveWorkflowRunner | undefined;
let processExistCode = 0; let processExistCode = 0;