From f31fa49002b3713d07fadaa3fde7760f64b4e55e Mon Sep 17 00:00:00 2001 From: Ford Date: Tue, 23 Jan 2024 22:13:33 -0800 Subject: [PATCH] Dockerfiles: Upgrade image base --> node:20.11-bookworm-slim --- Dockerfile.indexer-agent | 8 ++++---- Dockerfile.indexer-cli | 8 ++++---- Dockerfile.indexer-service | 8 ++++---- 3 files changed, 12 insertions(+), 12 deletions(-) diff --git a/Dockerfile.indexer-agent b/Dockerfile.indexer-agent index 0c2abc849..2aad4bbf7 100644 --- a/Dockerfile.indexer-agent +++ b/Dockerfile.indexer-agent @@ -1,11 +1,11 @@ ######################################################################## # Build image -FROM node:16.15-bullseye-slim as build +FROM node:20.11-bookworm-slim as build ENV NODE_ENV production -RUN apt-get update && apt-get install -y python build-essential git curl +RUN apt-get update && apt-get install -y python3 build-essential git curl # Install Rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && sh /tmp/rustup.sh -y @@ -29,7 +29,7 @@ RUN yarn --frozen-lockfile --non-interactive --production=false ######################################################################## # Runtime image -FROM node:16.15-bullseye-slim +FROM node:20.11-bookworm-slim ENV NODE_ENV production # When simulating large transactions, sometimes indexer-agent runs out of memory. @@ -38,7 +38,7 @@ ENV NODE_ENV production ENV NODE_OPTIONS="--max-old-space-size=1536" -RUN apt-get update && apt-get install -y python build-essential git curl +RUN apt-get update && apt-get install -y python3 build-essential git curl # Install Rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && sh /tmp/rustup.sh -y diff --git a/Dockerfile.indexer-cli b/Dockerfile.indexer-cli index c24ab8cf2..fedcd7893 100644 --- a/Dockerfile.indexer-cli +++ b/Dockerfile.indexer-cli @@ -1,11 +1,11 @@ ######################################################################## # Build image -FROM node:16.15-bullseye-slim as build +FROM node:20.11-bookworm-slim as build ENV NODE_ENV production -RUN apt-get update && apt-get install -y python build-essential git curl +RUN apt-get update && apt-get install -y python3 build-essential git curl # Install Rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && sh /tmp/rustup.sh -y @@ -30,11 +30,11 @@ RUN yarn --frozen-lockfile --non-interactive --production=false ######################################################################## # Runtime image -FROM node:16.15-bullseye-slim +FROM node:20.11-bookworm-slim ENV NODE_ENV production -RUN apt-get update && apt-get install -y python build-essential git curl +RUN apt-get update && apt-get install -y python3 build-essential git curl # Install Rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && sh /tmp/rustup.sh -y diff --git a/Dockerfile.indexer-service b/Dockerfile.indexer-service index 9722a5690..63bf2d174 100644 --- a/Dockerfile.indexer-service +++ b/Dockerfile.indexer-service @@ -1,11 +1,11 @@ ######################################################################## # Build image -FROM node:16.15-bullseye-slim as build +FROM node:20.11-bookworm-slim as build ENV NODE_ENV production -RUN apt-get update && apt-get install -y python build-essential git curl +RUN apt-get update && apt-get install -y python3 build-essential git curl # Install Rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && sh /tmp/rustup.sh -y @@ -30,11 +30,11 @@ RUN yarn --frozen-lockfile --non-interactive --production=false ######################################################################## # Runtime image -FROM node:16.15-bullseye-slim +FROM node:20.11-bookworm-slim ENV NODE_ENV production -RUN apt-get update && apt-get install -y python build-essential git curl +RUN apt-get update && apt-get install -y python3 build-essential git curl # Install Rust RUN curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs > /tmp/rustup.sh && sh /tmp/rustup.sh -y