From e1cae7bce9f00338cb72d4b952a2612f151be20e Mon Sep 17 00:00:00 2001 From: yorickdowne <71337066+yorickdowne@users.noreply.github.com> Date: Fri, 4 Aug 2023 02:58:44 +0100 Subject: [PATCH] Lodestar source build with Node 20 (#1467) --- lodestar/Dockerfile.source | 4 ++-- teku/Dockerfile.source | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lodestar/Dockerfile.source b/lodestar/Dockerfile.source index a9c17582..5a276c0c 100644 --- a/lodestar/Dockerfile.source +++ b/lodestar/Dockerfile.source @@ -1,4 +1,4 @@ -FROM node:18-alpine as build +FROM node:20-alpine as build # Here only to avoid build-time errors ARG DOCKER_TAG @@ -12,7 +12,7 @@ WORKDIR /usr/app RUN bash -c "cd .. && rm -rf app && git clone https://github.com/ChainSafe/lodestar.git app && cd app && git config advice.detachedHead false && git fetch --all --tags && if [[ ${BUILD_TARGET} =~ pr-.+ ]]; then git fetch origin pull/$(echo ${BUILD_TARGET} | cut -d '-' -f 2)/head:ls-pr; git checkout ls-pr; else git checkout ${BUILD_TARGET}; fi && yarn install --non-interactive --frozen-lockfile && yarn build" -FROM node:18-alpine +FROM node:20-alpine RUN apk update && apk add --no-cache ca-certificates tzdata bash su-exec && rm -rf /var/cache/apk/* diff --git a/teku/Dockerfile.source b/teku/Dockerfile.source index d9bb631f..f747a7c8 100644 --- a/teku/Dockerfile.source +++ b/teku/Dockerfile.source @@ -19,7 +19,7 @@ RUN bash -c "git clone https://github.com/ConsenSys/teku.git \ && ./gradlew installDist" # Pull all binaries into a second stage deploy Ubuntu container -FROM eclipse-temurin:17-jammy +FROM eclipse-temurin:17-jre-jammy ARG USER=teku ARG UID=10002