Use node 20 for faucet docker

This commit is contained in:
Simon Warta 2025-01-14 16:24:13 +01:00
parent 9d7f98260a
commit 5be8801a0f
No known key found for this signature in database

View File

@ -8,7 +8,7 @@
# During the build step the working directory must be the repo root such that the
# app has access to all installed dependencies.
FROM node:14-alpine as build-env
FROM node:20-alpine as build-env
ADD . /app
WORKDIR /app
@ -21,8 +21,8 @@ RUN (cd packages/faucet && SKIP_BUILD=1 yarn pack-node)
# Use Alpine and install Node.js which is 50% smaller than the -alpine version of the node
# image (53 MB including the faucet app).
FROM alpine:3.15
# Installs Node.js 16 (https://pkgs.alpinelinux.org/packages?name=nodejs&branch=v3.15)
FROM alpine:3.20
# Installs Node.js 20 (https://pkgs.alpinelinux.org/packages?name=nodejs&branch=v3.20)
RUN apk add --update nodejs
COPY --from=build-env /app/packages/faucet /app/packages/faucet