From d1bfced9b9049a5fcb123f8a84553f4841189cb4 Mon Sep 17 00:00:00 2001 From: Fernando Zavalia <24811313+fzavalia@users.noreply.github.com> Date: Wed, 14 Feb 2024 11:48:42 -0300 Subject: [PATCH] fix: Use non alpine node (#365) --- Dockerfile | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index 55d0dcf..ba8085c 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ ARG RUN -FROM node:18-alpine as builderenv +FROM node:18 as builderenv WORKDIR /app @@ -11,7 +11,6 @@ RUN apk add --no-cache py3-setuptools python3-dev build-base # install dependencies COPY package.json /app/package.json COPY package-lock.json /app/package-lock.json -# --maxsockets=5 is used to avoid "EMFILE: too many open files" error RUN npm install --maxsockets=5 # build the app @@ -20,10 +19,9 @@ RUN npm run build RUN npm run test # remove devDependencies, keep only used dependencies -# --maxsockets=5 is used to avoid "EMFILE: too many open files" error RUN npm install --only=production --maxsockets=5 -FROM node:18-alpine +FROM node:18 RUN apk update RUN apk add --no-cache tini