Skip to content

Commit 165e066

Browse files
committed
refactor: Add docker-bake variables and bump traefik version.
1 parent 4114b3f commit 165e066

3 files changed

Lines changed: 8 additions & 5 deletions

File tree

docker-bake.hcl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,8 @@ target "default" {
77
context = "."
88
args = {
99
"ENVIRONMENT" = "cartesi"
10+
"NODE_VERSION"= "22.22-alpine3.23"
11+
"TURBO_VERSION"= "2.8.11"
12+
"PNPM_VERSION"= "10.25.0"
1013
}
1114
}

docker/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
ARG NODE_VERSION=22.22-alpine3.23
22

33
FROM node:${NODE_VERSION} AS base
4-
4+
ARG PNPM_VERSION
55
RUN corepack enable
6-
RUN corepack prepare pnpm@10.25.0 --activate
6+
RUN corepack prepare pnpm@${PNPM_VERSION} --activate
77

88
FROM base AS builder
99
RUN apk add --no-cache libc6-compat
1010
RUN apk update
1111

1212
WORKDIR /app
13-
RUN npm install -g turbo@^2.8.11
13+
ARG TURBO_VERSION
14+
RUN npm install -g turbo@^${TURBO_VERSION}
1415
COPY . .
1516
RUN turbo prune --scope=explorer --docker
1617

@@ -46,7 +47,6 @@ ENV NODE_ENV=production
4647
RUN addgroup --system --gid 1001 nodejs
4748
RUN adduser --system --uid 1001 nextjs
4849

49-
#COPY --from=installer /app/apps/web/public ./public
5050
COPY --from=installer /app/apps/explorer/next.config.ts .
5151
COPY --from=installer /app/apps/explorer/package.json .
5252

docker/docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ version: "3.9"
22

33
services:
44
proxy:
5-
image: traefik:v2.10
5+
image: traefik:v3.3.7
66
ports:
77
- 8080:8080
88
- 8088:8088

0 commit comments

Comments
 (0)