From ea8a0be5e8e7923e4b69183d985ed9fc9693ca7c Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Mon, 12 Sep 2022 20:54:43 -0300 Subject: [PATCH 1/3] feat(onchain): switching from alpine to bullseye --- onchain/Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/onchain/Dockerfile b/onchain/Dockerfile index cd4d98e2..b750cfb4 100644 --- a/onchain/Dockerfile +++ b/onchain/Dockerfile @@ -11,16 +11,16 @@ # the License. # syntax=docker.io/docker/dockerfile:1.4 -FROM node:16.17.0-alpine3.15 as base +FROM node:16.17.0-bullseye as base # this stage installs system dependencies for building the node projects FROM base as builder # install git and python3 RUN < Date: Mon, 22 May 2023 10:15:27 -0300 Subject: [PATCH 2/3] fixup! feat(onchain): switching from alpine to bullseye --- onchain/Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/onchain/Dockerfile b/onchain/Dockerfile index b750cfb4..eeac8f57 100644 --- a/onchain/Dockerfile +++ b/onchain/Dockerfile @@ -11,7 +11,8 @@ # the License. # syntax=docker.io/docker/dockerfile:1.4 -FROM node:16.17.0-bullseye as base +ARG ${NODEJS_VERSION}=18.16.0 +FROM node:${NODEJS_VERSION}-bullseye as base # this stage installs system dependencies for building the node projects FROM base as builder @@ -48,7 +49,7 @@ RUN yarn build RUN npm install -g . # this stage is runtime image for rollups (hardhat) -FROM node:16.17.0-bullseye-slim as hardhat +FROM node:${NODEJS_VERSION}-bullseye-slim as hardhat # copy yarn build COPY --from=rollups-builder /app /app @@ -61,6 +62,6 @@ ENTRYPOINT ["npx", "hardhat"] CMD ["node"] # this stage is runtime for rollups-cli (built with esbuild) -FROM node:16.17.0-bullseye-slim as cli +FROM node:${NODEJS_VERSION}-bullseye-slim as cli COPY --from=cli-builder /usr/local/bin/cartesi-rollups /usr/local/bin/ ENTRYPOINT ["cartesi-rollups"] From f2d7cc785035402c526dc07926dfee6776c511c7 Mon Sep 17 00:00:00 2001 From: Danilo Tuler Date: Mon, 22 May 2023 12:24:45 -0300 Subject: [PATCH 3/3] fixup! feat(onchain): switching from alpine to bullseye --- onchain/Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/onchain/Dockerfile b/onchain/Dockerfile index eeac8f57..bbc10de0 100644 --- a/onchain/Dockerfile +++ b/onchain/Dockerfile @@ -11,7 +11,7 @@ # the License. # syntax=docker.io/docker/dockerfile:1.4 -ARG ${NODEJS_VERSION}=18.16.0 +ARG NODEJS_VERSION=18.16.0 FROM node:${NODEJS_VERSION}-bullseye as base # this stage installs system dependencies for building the node projects