Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
cclauss committed Feb 13, 2019
1 parent bbf3842 commit 168b506
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
FROM jfloff/alpine-python
FROM python:3.7-alpine

LABEL "com.github.actions.name"="Python Syntax Checker"
LABEL "com.github.actions.description"="Run flake8 to find syntax errors in a Python repo."
LABEL "com.github.actions.name"="GitHub Action for Flake8"
LABEL "com.github.actions.description"="Run Flake8 commands"
LABEL "com.github.actions.icon"="upload-cloud"
LABEL "com.github.actions.color"="6f42c1"

RUN apk add --no-cache bash
RUN pip install --upgrade pip
RUN pip install flake8
RUN python --version ; pip --version ; echo "flake8 $(flake8 --version)"

CMD ["flake8", "/github/workspace/", "--count", "--select=E901,E999,F821,F822,F823", "--show-source", "--statistics"]
COPY entrypoint.sh /
RUN chmod +x /entrypoint.sh
ENTRYPOINT ["/entrypoint.sh"]

0 comments on commit 168b506

Please sign in to comment.