forked from docker-library/ghost
-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
Overview
This pull request introduces a significant enhancement to our Node.js Docker images by transitioning from Alpine to Debian-based images. The update incorporates multi-stage builds for Node.js 18, improving the overall efficiency and performance of our Docker containers.
Transition from Alpine to Debian:
- The switch to Debian provides a more stable and robust environment for running Node.js applications. This change addresses compatibility issues that some users have experienced with Alpine, particularly regarding native module dependencies.
Ref
by [[Bret Fisher]]
node:18.20.5-bullseye-slim
https://hub.docker.com/_/ubuntu
ubuntu:noble-20241015(latest aka v24.04 as [[2024-11-26]])
FROM node:18.20.5-bullseye-slim as node
FROM ubuntu:noble-20241015 as base
COPY --from=node /usr/local/ /usr/local/
# this ensures we fix simlinks for npx, Yarn, and PnPm
RUN corepack disable && corepack enable
ENTRYPOINT ["/usr/local/bin/node"]
# rest of your stuff goes hereReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels