Skip to content

Commit

Permalink
fix: --maxSockets (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzavalia authored Feb 14, 2024
1 parent f3ceed6 commit 938dc72
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,17 @@ 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
RUN npm ci
# --maxsockets=5 is used to avoid "EMFILE: too many open files" error
RUN npm ci --maxsockets=5

# build the app
COPY . /app
RUN npm run build
RUN npm run test

# remove devDependencies, keep only used dependencies
RUN npm ci --only=production
# --maxsockets=5 is used to avoid "EMFILE: too many open files" error
RUN npm ci --only=production --maxsockets=5

FROM node:18-alpine

Expand Down

0 comments on commit 938dc72

Please sign in to comment.