Skip to content

Commit 865ca43

Browse files
committed
feat(container): switch to Alpine container
This reduces the container image size from about 950MB to 200MB. Closes #4183.
1 parent 65b219e commit 865ca43

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Dockerfile.ci

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
FROM docker.io/library/node:18-buster AS builder
1+
FROM docker.io/library/node:18-alpine AS builder
22
WORKDIR /src
33
COPY . ./
4+
RUN apk add --no-cache python3 py3-setuptools make g++
45
RUN yarn install --frozen-lockfile --network-timeout 100000 && \
56
yarn run build && \
67
# Commit lint CLI packages
@@ -24,7 +25,7 @@ RUN yarn install --frozen-lockfile --network-timeout 100000 && \
2425
# Default commitlint config
2526
npm pack @commitlint/config-conventional
2627

27-
FROM docker.io/library/node:18-buster
28+
FROM docker.io/library/node:18-alpine
2829
COPY --from=builder /src/*.tgz ./
2930
RUN npm config set fetch-retry-mintimeout 20000 && \
3031
npm config set fetch-retry-maxtimeout 120000 && \

0 commit comments

Comments
 (0)