File: Dockerfile

package info (click to toggle)
gitlint 0.19.1-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,144 kB
  • sloc: python: 6,728; sh: 74; makefile: 17; javascript: 5
file content (17 lines) | stat: -rw-r--r-- 555 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# To lint your current working directory:
# docker run --ulimit nofile=1024 -v $(pwd):/repo jorisroovers/gitlint

# With arguments:
# docker --ulimit nofile=1024 run -v $(pwd):/repo jorisroovers/gitlint --debug --ignore T1

# NOTE: --ulimit is required to work around a limitation in Docker
# Details: https://github.com/jorisroovers/gitlint/issues/129

FROM python:3.11.2-alpine
ARG GITLINT_VERSION

RUN apk add git
RUN pip install gitlint==$GITLINT_VERSION

RUN git config --global --add safe.directory /repo
ENTRYPOINT ["gitlint", "--target", "/repo"]