From 3028e4ccc4c560fc9d154136f013cceb3bedf2c2 Mon Sep 17 00:00:00 2001 From: Alex <71931113+af-afk@users.noreply.github.com> Date: Tue, 23 Jan 2024 14:19:25 +1030 Subject: [PATCH] Downgrade Alpine version during Node upgrade (#2509) * Update the node version in the docker container * Update the Alpine version * Update all Alpine versions * Downgrade alpine version to 3.18 * Only 3.18 for the alpine version --------- Co-authored-by: user --- Dockerfile.build-root | 4 ++-- Dockerfile.build-root-web | 2 +- Dockerfile.node | 2 +- Dockerfile.runtime | 2 +- Dockerfile.runtime-web | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile.build-root b/Dockerfile.build-root index 4211a57af..65bc9281e 100644 --- a/Dockerfile.build-root +++ b/Dockerfile.build-root @@ -1,5 +1,5 @@ -FROM golang:1.20-alpine3.16 AS build +FROM golang:1.20-alpine3.18 AS build RUN apk add --no-cache \ openssl \ @@ -29,7 +29,7 @@ RUN . "$NVM_DIR/nvm.sh" && nvm alias default v${NODE_VERSION} ENV PATH="/root/.nvm/versions/node/v${NODE_VERSION}/bin/:${PATH}" -RUN python3 -m pip install semgrep +RUN python3 -m pip install --break-system-packages semgrep FROM build AS installed diff --git a/Dockerfile.build-root-web b/Dockerfile.build-root-web index 3cedeea90..110d2600d 100644 --- a/Dockerfile.build-root-web +++ b/Dockerfile.build-root-web @@ -1,5 +1,5 @@ -FROM alpine:3.16 AS build +FROM alpine:3.18 AS build RUN apk add --no-cache \ nodejs \ diff --git a/Dockerfile.node b/Dockerfile.node index 65f5c43db..a8aa82667 100644 --- a/Dockerfile.node +++ b/Dockerfile.node @@ -1,4 +1,4 @@ -FROM node:18-alpine3.16 +FROM node:20-alpine3.18 RUN apk add --no-cache make diff --git a/Dockerfile.runtime b/Dockerfile.runtime index bac982b06..a8d9d5b97 100644 --- a/Dockerfile.runtime +++ b/Dockerfile.runtime @@ -1,4 +1,4 @@ -FROM alpine:3.16.1 +FROM alpine:3.18 RUN apk add --no-cache postgresql-client diff --git a/Dockerfile.runtime-web b/Dockerfile.runtime-web index 610e2157d..a743dfe0f 100644 --- a/Dockerfile.runtime-web +++ b/Dockerfile.runtime-web @@ -1,4 +1,4 @@ -FROM alpine:3.16.1 +FROM alpine:3.18 RUN apk add --no-cache \ nodejs \