forked from tayfun/flake8-your-pr
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
18 lines (15 loc) · 780 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
FROM python:3.7-alpine
LABEL "com.github.actions.name"="Run flake8 on your PR - with annotations!"
LABEL "com.github.actions.description"="GitHub Action to run flake8 linter on your Pull Requests and add annotations on errors"
LABEL "com.github.actions.icon"="thumbs-up"
LABEL "com.github.actions.color"="green"
LABEL "com.github.actions.repository"="https://github.com/tayfun/flake8-your-pr"
LABEL "com.github.actions.homepage"="https://github.com/tayfun/flake8-your-pr"
LABEL "com.github.actions.maintainer"="Tayfun Sen"
# RUN apk add --no-cache build-base gcc
RUN apk add --no-cache git bash jq curl
RUN pip install --upgrade pip
RUN pip install flake8 flake8-json requests pytz
RUN python --version; pip --version; flake8 --version
COPY src /src
CMD ["/src/entrypoint.sh"]