1- ARG NODE_IMAGE=node:20.20.2-bullseye -slim@sha256:65ef49f7d24aefd012a7fc6f9a2b734bcc19e424976a81f60c86b47266ef5b28
1+ ARG NODE_IMAGE=node:20.20.2-bookworm -slim@sha256:2cf067cfed83d5ea958367df9f966191a942351a2df77d6f0193e162b5febfc0
22
33FROM golang:1.23-alpine AS goose_builder
44RUN go install github.com/pressly/goose/v3/cmd/goose@v3.26.0
@@ -13,7 +13,7 @@ RUN find . -name "node_modules" -type d -prune -exec rm -rf '{}' +
1313
1414# Base strategy to have layer caching
1515FROM ${NODE_IMAGE} AS base
16- RUN apt-get update && apt-get install -y openssl dumb-init
16+ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends openssl dumb-init && rm -rf /var/lib/apt/lists/*
1717WORKDIR /triggerdotdev
1818COPY --chown=node:node .gitignore .gitignore
1919COPY --from=pruner --chown=node:node /triggerdotdev/out/json/ .
@@ -43,7 +43,7 @@ RUN --mount=type=cache,id=pnpm,target=/root/.local/share/pnpm/store pnpm install
4343# # Builder (builds the webapp)
4444FROM base AS builder
4545# This is needed for the sentry-cli binary while building the webapp
46- RUN apt-get update && apt-get install -y openssl dumb-init ca-certificates
46+ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends openssl dumb-init ca-certificates && rm -rf /var/lib/apt/lists/*
4747WORKDIR /triggerdotdev
4848# Corepack is used to install pnpm with the exact version from packageManager
4949RUN corepack enable && corepack prepare pnpm@10.33.2 --activate
@@ -75,7 +75,7 @@ RUN --mount=type=secret,id=sentry_auth_token \
7575
7676# Runner
7777FROM ${NODE_IMAGE} AS runner
78- RUN apt-get update && apt-get install -y openssl netcat-openbsd ca-certificates
78+ RUN apt-get update && apt-get upgrade -y && apt-get install -y --no-install-recommends openssl netcat-openbsd ca-certificates && rm -rf /var/lib/apt/lists/*
7979WORKDIR /triggerdotdev
8080ENV NODE_ENV=production
8181
0 commit comments