Skip to content

Commit 3f76fc6

Browse files
Update node to 16.16 & run npm update
Due to an update in the default repositories in the underlying `alpine` image, `python` no longer refers to the correct version for our build. Changing it to `python3` will allow the build to complete succesfully. Ideally we'd update to version 18 straight away, but that seems a bit less straightforward. Updating to version 16 (which has security support until september 11th 2023) buys us time to come up with a good strategy to upgrade further.
1 parent 16d8c94 commit 3f76fc6

File tree

3 files changed

+43733
-9038
lines changed

3 files changed

+43733
-9038
lines changed

Dockerfile

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Nodejs 8.0.0 alpine 3.6.0
2-
FROM node:13.14.0-alpine
2+
FROM node:16.16.0-alpine
33

44
# Label for tracking
55
LABEL nl.openstad.container="frontend" nl.openstad.version="0.0.1-beta" nl.openstad.release-date="2020-05-07"
@@ -35,7 +35,7 @@ ENV S3_BUCKET=""
3535

3636

3737
# Install all base dependencies.
38-
RUN apk add --no-cache --update openssl g++ make python musl-dev git bash
38+
RUN apk add --no-cache --update openssl g++ make python3 musl-dev git bash
3939

4040

4141
# Set the working directory to the root of the container
@@ -54,7 +54,7 @@ RUN npm install --loglevel warn --production
5454
RUN npm install -g nodemon
5555

5656
# Remove unused packages only used for building.
57-
RUN apk del openssl g++ make python && rm -rf /var/cache/apk/*
57+
RUN apk del openssl g++ make python3 && rm -rf /var/cache/apk/*
5858

5959
RUN mkdir -p /home/app/public
6060
RUN mkdir -p /home/app/public

0 commit comments

Comments
 (0)