Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
##

# Build project
FROM node:16.13-alpine3.13 AS builder
FROM node:20-alpine AS builder

RUN set -x \
# Change node uid/gid
Expand Down Expand Up @@ -36,12 +36,14 @@ RUN set -x \
&& npm config set fetch-retry-mintimeout 20000 \
&& npm config set fetch-retry-maxtimeout 120000 \
&& npm config set fetch-timeout 600000 \
# Build
&& PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm ci \
# Build. --legacy-peer-deps: the lockfile is resolved that way
# (e.g. raw-loader@3 peer-requires webpack 4 while we run webpack 5);
# npm 10's strict ci peer enforcement otherwise rejects it.
&& PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true npm ci --legacy-peer-deps \
&& npm run build

# Main image
FROM node:16.13-alpine3.13
FROM node:20-alpine

RUN set -x \
# Change node uid/gid
Expand Down Expand Up @@ -74,7 +76,7 @@ RUN set -x \
&& npm config set fetch-retry-mintimeout 20000 \
&& npm config set fetch-retry-maxtimeout 120000 \
&& npm config set fetch-timeout 600000 \
&& npm ci --production \
&& npm ci --omit=dev --legacy-peer-deps \
&& npm cache clean --force
RUN mkdir -p /app/.config/configstore
RUN ln -s dist/version.json version.json
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
"cache": true
},
"engines": {
"node": "^16.13.0"
"node": ">=20.9.0"
},
"devDependencies": {
"@babel/core": "^7.17.9",
Expand Down
Loading