Skip to content

Node alpine as base image #750

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

qkudev
Copy link

@qkudev qkudev commented Sep 4, 2024

Docker image: use alpine as base image

Changes base image from node:18.16.0 to node:18.16.0-alpine.
This change dramatically affects docker image size: down from 1.21gb to 178mb.

Adds "production" as default for build arg NODE_ENV.

Also adds a "how to configure docker image" section to README.MD (#727).

Changes base image from `node:18.16.0` to `node:18.16.0-alpine`.
This change dramatically affects docker image size: down from 1.21gb to 178mb.

Adds "production" as default for build arg `NODE_ENV`.
@@ -1,4 +1,4 @@
FROM node:18.16.0
FROM node:18.16.0-alpine

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FROM node:18.20-alpine

I suggest bumping to this, since it still seems to work ok and has ~330 security warnings when you run it through grype

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.

2 participants