Skip to content

Commit

Permalink
Dockerfiles: Upgrade image base --> node:20.11-bookworm-slim
Browse files Browse the repository at this point in the history
  • Loading branch information
fordN committed Jan 24, 2024
1 parent 759d3a3 commit f31fa49
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 12 deletions.
8 changes: 4 additions & 4 deletions Dockerfile.indexer-agent
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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.
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.indexer-cli
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
8 changes: 4 additions & 4 deletions Dockerfile.indexer-service
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down

0 comments on commit f31fa49

Please sign in to comment.