From 7dcc62f8cb2a11ae31ed30170eb2b44c7357a6f3 Mon Sep 17 00:00:00 2001 From: Manuel Leonhardt Date: Fri, 18 Oct 2024 22:52:33 +0200 Subject: [PATCH] feat(container): switch to Alpine container This reduces the container image size from about 950MB to 200MB. Closes #4183. --- Dockerfile.ci | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Dockerfile.ci b/Dockerfile.ci index 31c33f3966..3e20d82d7a 100644 --- a/Dockerfile.ci +++ b/Dockerfile.ci @@ -1,6 +1,7 @@ -FROM docker.io/library/node:18-buster AS builder +FROM docker.io/library/node:18-alpine AS builder WORKDIR /src COPY . ./ +RUN apk add --no-cache python3 py3-setuptools make g++ git RUN yarn install --frozen-lockfile --network-timeout 100000 && \ yarn run build && \ # Commit lint CLI packages @@ -24,7 +25,7 @@ RUN yarn install --frozen-lockfile --network-timeout 100000 && \ # Default commitlint config npm pack @commitlint/config-conventional -FROM docker.io/library/node:18-buster +FROM docker.io/library/node:18-alpine COPY --from=builder /src/*.tgz ./ RUN npm config set fetch-retry-mintimeout 20000 && \ npm config set fetch-retry-maxtimeout 120000 && \