Skip to content

Commit

Permalink
fix: Use non alpine node (#365)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia authored Feb 14, 2024
1 parent 2f94fcb commit d1bfced
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG RUN

FROM node:18-alpine as builderenv
FROM node:18 as builderenv

WORKDIR /app

Expand All @@ -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
Expand All @@ -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
Expand Down

0 comments on commit d1bfced

Please sign in to comment.