5
0
Fork 0
mirror of https://github.com/wagoid/commitlint-github-action.git synced 2025-11-07 08:06:54 +00:00
commitlint-github-action/Dockerfile
Jeroen de Bruijn e03ee8edd2
ci: run npm ci to install and ignore scripts (#104)
* ci: run `npm ci` to install and ignore scripts

`npm ci` is meant to be used in CI environments and the scripts are ignored to prevent e.g. Husky
from being installed in the CI environment. See https://docs.npmjs.com/cli/v7/commands/npm-ci.

* ci: run `npm ci` to install and ignore scripts in the Dockerfile
2021-02-25 20:02:06 +01:00

11 lines
156 B
Docker

FROM node:12-alpine3.9
RUN apk --no-cache add git
COPY package*.json /
RUN npm ci --production --ignore-scripts
COPY . .
ENTRYPOINT ["/entrypoint.sh"]