-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
23 lines (18 loc) · 812 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
FROM konstruktoid/alpine
LABEL "com.github.actions.name"="Konstruktoid Python linting"
LABEL "com.github.actions.description"="Python linting using black and flake8"
LABEL "com.github.actions.icon"="mic"
LABEL "com.github.actions.color"="purple"
LABEL "repository"="https://github.com/konstruktoid/action-pylint"
LABEL "homepage"="https://github.com/konstruktoid/action-pylint"
LABEL "maintainer"="Thomas Sjögren <[email protected]>"
COPY requirements.txt /requirements.txt
RUN apk update && \
apk upgrade && \
apk --update add gcc musl-dev python3-dev python3 && \
pip3 install --upgrade pip && \
pip3 install -r /requirements.txt && \
apk del gcc musl-dev python3-dev && \
rm -rf /var/cache/apk/
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]