Skip to content
This repository was archived by the owner on Jan 28, 2024. It is now read-only.

Commit fa63699

Browse files
committed
chore: replace --production npm arg with --omit=dev
1 parent 8789d3c commit fa63699

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ WORKDIR /usr/app
77
COPY . .
88
# Curl needed for healthcheck command
99
RUN apk add --no-cache curl && \
10-
npm ci --production --ignore-scripts && \
10+
npm ci --ignore-scripts --omit=dev && \
1111
npm cache clean --force
1212

1313
# Node images provide 'node' unprivileged user to run apps and prevent

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Perform the following steps before deployment:
5050
5151
### Standard Deployment
5252

53-
1. Run `npm ci --ignore-scripts --production` to install dependencies
53+
1. Run `npm ci --ignore-scripts --omit=dev` to install dependencies
5454
2. Run `npm start`
5555

5656
The service should be up and running on the port set in the config. You should see output similar to the following in stdout or in the log file specified using the `LOG_ROTATION_FILENAME` environment variable:
@@ -97,7 +97,7 @@ This requires [Docker](https://www.docker.com) installed.
9797

9898
If you are unable to deploy this into production using Docker, it is recommended that you use a process manager such as [PM2](https://pm2.keymetrics.io/).
9999

100-
1. Run `npm ci --ignore-scripts --production` to install dependencies
100+
1. Run `npm ci --ignore-scripts --omit=dev` to install dependencies
101101
2. Run `npm i -g pm2` to install pm2 globally
102102
3. Launch application with `pm2 start .pm2.config.js`
103103
4. Check the application has been deployed using `pm2 list` or `pm2 monit`

0 commit comments

Comments
 (0)