mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-29 01:21:05 -05:00
21 lines
632 B
Text
21 lines
632 B
Text
|
FROM node:21.4.0-bookworm
|
||
|
|
||
|
SHELL ["/bin/bash", "-o", "errexit", "-o", "nounset", "-o", "pipefail", "-c"]
|
||
|
|
||
|
RUN apt-get update \
|
||
|
&& apt-get --assume-yes --no-install-recommends install \
|
||
|
jq \
|
||
|
&& rm -rf /var/lib/apt/lists/*
|
||
|
|
||
|
WORKDIR /app
|
||
|
|
||
|
COPY package.json ./
|
||
|
|
||
|
RUN jq '.dependencies | to_entries[] | select(.key | startswith("@commitlint/")) | .key + "@" + .value' package.json > commitlint-packages.txt \
|
||
|
&& xargs npm install -g < commitlint-packages.txt \
|
||
|
&& rm package.json commitlint-packages.txt \
|
||
|
&& commitlint --version \
|
||
|
&& git config --global --add safe.directory /source-repository
|
||
|
|
||
|
ENTRYPOINT [ "commitlint" ]
|