Skip to content

Conversation

haha1903
Copy link
Collaborator

@haha1903 haha1903 commented Apr 4, 2023

Update Dockerfile

Hai Chang added 2 commits April 4, 2023 10:20
- Update base image to `node:16-alpine`
- Add optional NPM authentication token build argument
- Install dependencies from package-lock.json
- Copy application sources
- Build application
- Install runtime dependencies
- Copy production build
- Expose application port
- Start application with `node dist/main.js`

[Dockerfile]
- Change the base image from `node:lts` to `node:16-alpine`
- Add optional NPM authentication token build argument
- Add configuration files to the working directory
- Install dependencies from package-lock.json
- Copy application sources
- Build application
- Install runtime dependencies
- Copy production build
- Expose application port
- Start application with `node dist/main.js`
@haha1903 haha1903 merged commit 73a9ab0 into main Apr 4, 2023
@haha1903 haha1903 deleted the hai/dockerfile branch April 4, 2023 03:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant