Skip to content

Commit

Permalink
Pin Node to v18 in Dockerfile
Browse files Browse the repository at this point in the history
Node builds on certain platforms emulated with QEMU are broken when
using a Node version greater than 18.

See docker/build-push-action#1071 for more info.
  • Loading branch information
fyssion committed Oct 3, 2024
1 parent ab7064b commit 759b187
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
# Comments are provided throughout this file to help you get started.
# If you need more help, visit the Dockerfile reference guide at
# https://docs.docker.com/engine/reference/builder/
FROM node:alpine3.19

# Do not upgrade node past 18
# Blocked by https://github.com/docker/build-push-action/issues/1071
FROM node:18.19.1-alpine
# Use production node environment by default.
ENV NODE_ENV production

Expand Down

0 comments on commit 759b187

Please sign in to comment.