mirror of
https://github.com/wagoid/commitlint-github-action.git
synced 2025-11-07 16:06:56 +00:00
According to Snyk.io, the currently used base Docker image has 19 security vulnerabilities (13 high). https://snyk.io/test/docker/node%3A16.5.0-alpine3.14 On the other hand, the image `node:16.14.2-alpine3.14` has no known security vulnerabilies. https://snyk.io/test/docker/node%3A16.14.2-alpine3.14 This commit upgrades the image to fix the above mentioned issues.
23 lines
344 B
Docker
23 lines
344 B
Docker
FROM node:16.14.2-alpine3.14 as build
|
|
|
|
COPY package*.json /
|
|
|
|
RUN npm ci --ignore-scripts
|
|
|
|
COPY . .
|
|
|
|
RUN npm run build
|
|
|
|
FROM node:16.5.0-alpine3.14
|
|
|
|
RUN apk --no-cache add git
|
|
|
|
COPY --from=build dist/run.js /run.js
|
|
|
|
COPY package*.json /
|
|
|
|
RUN npm ci --production --ignore-scripts
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|