Debian Codegraph @

Dockerfile

raw
1 # To lint your current working directory:
2 # docker run --ulimit nofile=1024 -v $(pwd):/repo jorisroovers/gitlint
3
4 # With arguments:
5 # docker --ulimit nofile=1024 run -v $(pwd):/repo jorisroovers/gitlint --debug --ignore T1
6
7 # NOTE: --ulimit is required to work around a limitation in Docker
8 # Details: https://github.com/jorisroovers/gitlint/issues/129
9
10 FROM python:3.11.2-alpine
11 ARG GITLINT_VERSION
12
13 RUN apk add git
14 RUN pip install gitlint==$GITLINT_VERSION
15
16 RUN git config --global --add safe.directory /repo
17 ENTRYPOINT ["gitlint", "--target", "/repo"]