-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
19 lines (13 loc) · 676 Bytes
/
Dockerfile
File metadata and controls
19 lines (13 loc) · 676 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
FROM python:3
LABEL "com.github.actions.name"="Python Code Validator"
LABEL "com.github.actions.description"="Runs black, mypy, pylint, reorder-python-imports and safety"
LABEL "com.github.actions.icon"="code"
LABEL "com.github.actions.color"="black"
LABEL "repository"="https://github.com/cfedermann/python-code-validator"
LABEL "homepage"="https://github.com/cfedermann/python-code-validator"
LABEL "maintainer"="cfedermann"
ENV PYLINT_THRESHOLD "9"
ENV BLACK_LINE_MAXLEN "100"
RUN pip install black==21.7b0 mypy==0.900 pylint==2.9.6 pylint-fail-under==0.3.0 reorder-python-imports==2.6.0 safety==1.10.3
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]