Skip to content

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