Skip to content

Commit

Permalink
ci(container): switch to Alpine container (#4185)
Browse files Browse the repository at this point in the history
This reduces the container image size from about 950MB to 200MB.

Closes #4183.
  • Loading branch information
skycaptain authored Nov 8, 2024
1 parent 49ba56d commit 93be696
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Dockerfile.ci
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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 && \
Expand Down

0 comments on commit 93be696

Please sign in to comment.