Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use install #364

Merged
merged 1 commit into from
Feb 14, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ RUN apk add --no-cache py3-setuptools python3-dev build-base
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 ci --maxsockets=5
RUN npm install --maxsockets=5

# build the app
COPY . /app
Expand All @@ -21,7 +21,7 @@ RUN npm run test

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

FROM node:18-alpine

Expand Down
Loading