forked from conventional-changelog/commitlint
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile.ci
30 lines (29 loc) · 987 Bytes
/
Dockerfile.ci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
FROM docker.io/library/node:18-buster AS builder
WORKDIR /src
COPY . ./
RUN yarn install && \
yarn run build && \
# Commit lint CLI packages
npm pack @commitlint/cli && \
npm pack @commitlint/config-validator && \
npm pack @commitlint/ensure && \
npm pack @commitlint/execute-rule && \
npm pack @commitlint/format && \
npm pack @commitlint/is-ignored && \
npm pack @commitlint/lint && \
npm pack @commitlint/load && \
npm pack @commitlint/message && \
npm pack @commitlint/parse && \
npm pack @commitlint/read && \
npm pack @commitlint/resolve-extends && \
npm pack @commitlint/rules && \
npm pack @commitlint/to-lines && \
npm pack @commitlint/top-level && \
npm pack @commitlint/types && \
# Default commitlint config
npm pack @commitlint/config-conventional
FROM docker.io/library/node:18-buster
COPY --from=builder /src/*.tgz ./
RUN npm install -g *.tgz && \
rm -rf *.tgz
ENTRYPOINT ["commitlint"]