-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathDockerfile
24 lines (18 loc) · 1.04 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM konstruktoid/alpine:latest@sha256:1dc5b43e2fa46c9ce7afb1fbdf864888fe737cce1c655f83ba27039b7e5aee0a
LABEL "com.github.actions.name"="Konstruktoid Python linting"
LABEL "com.github.actions.description"="Python linting using black and ruff"
LABEL "com.github.actions.icon"="bell"
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
ENV PATH="${PATH}:/root/.local/bin"
RUN apk --no-cache add gcc musl-dev python3 python3-dev py3-pip && \
if [ ! -e /usr/bin/python ]; then ln -sf python3 /usr/bin/python ; fi && \
python3 -m pip install --break-system-packages --no-cache-dir --upgrade pipx && \
for p in $(grep -v '^#' /requirements.txt); do pipx install "${p}"; done && \
apk del gcc musl-dev python3-dev && \
rm -rf /var/cache/apk/
COPY entrypoint.sh /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]