Skip to content

Commit 5a97a4d

Browse files
committed
Dockerfile: use Node.js v20
This is currently the last LTS version supported by upstream. See: https://nodejs.org/en/about/previous-releases
1 parent ea160e2 commit 5a97a4d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This image will be published as dspace/dspace-angular
22
# See https://github.com/DSpace/dspace-angular/tree/main/docker for usage details
33

4-
FROM docker.io/node:18-alpine
4+
FROM docker.io/node:20-alpine
55

66
# Ensure Python and other build tools are available
77
# These are needed to install some node modules, especially on linux/arm64

Dockerfile.dist

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# Test build:
55
# docker build -f Dockerfile.dist -t dspace/dspace-angular:latest-dist .
66

7-
FROM docker.io/node:18-alpine AS build
7+
FROM docker.io/node:20-alpine AS build
88

99
# Ensure Python and other build tools are available
1010
# These are needed to install some node modules, especially on linux/arm64
@@ -17,7 +17,7 @@ RUN npm install
1717
ADD . /app/
1818
RUN npm run build:prod
1919

20-
FROM node:18-alpine
20+
FROM node:20-alpine
2121
RUN npm install --global pm2
2222

2323
COPY --chown=node:node --from=build /app/dist /app/dist

0 commit comments

Comments
 (0)