diff --git a/Dockerfile b/Dockerfile index 59dc0a9c..479530f8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,7 +2,7 @@ # Copyright © 2022-2024 contains code contributed by Orange SA, authors: Denis Barbaron - Licensed under the Apache license 2.0 # -FROM alpine:3.21.3 +FROM node:22.14-alpine3.20 # Sneak the stf executable into $PATH. ENV PATH=/app/bin:$PATH @@ -20,17 +20,6 @@ ARG TARGETARCH RUN apk update && \ apk upgrade && \ apk add zeromq-dev musl-dev protobuf-dev git graphicsmagick yasm ninja g++ git wget python3 cmake make curl unzip zip coreutils shadow && \ - NODE_VERSION="v22.11.0" && \ - BASE_URL="https://unofficial-builds.nodejs.org/download/release/$NODE_VERSION" && \ - if [ "$TARGETARCH" = "amd64" ]; then \ - FILE_NAME="node-$NODE_VERSION-linux-x64-musl.tar.xz"; \ - elif [ "$TARGETARCH" = "arm64" ]; then \ - FILE_NAME="node-$NODE_VERSION-linux-arm64-musl.tar.xz"; \ - else \ - echo "Unsupported architecture: $TARGETARCH"; \ - exit 1; \ - fi && \ - curl -fsSL "$BASE_URL/$FILE_NAME" | tar -xJ -C /usr/local --strip-components=1 && \ adduser -D -h /home/stf -s /sbin/nologin stf && \ mkdir -p /home/stf && \ chown stf:stf /home/stf && \