Skip to content

Commit

Permalink
Merge pull request #11 from aceberle/feature/fixing-action
Browse files Browse the repository at this point in the history
Feature/fixing action
  • Loading branch information
ScholliYT committed May 25, 2021
2 parents d9f0328 + 420d5dd commit 8e0fd89
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/python-lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,4 +60,6 @@ jobs:
-e INPUT_INCLUDE_URL_CONTAINED='ScholliYT/Broken-Links-Crawler-Action' \
-e INPUT_EXCLUDE_URL_CONTAINED='/tree' \
-e INPUT_EXCLUDE_URL_PREFIX="mailto:,https://www.linkedin.com,https://linkedin.com" \
-e INPUT_EXCLUDE_URL_SUFFIX=".zip" \
--workdir="/opt/" \
${{ env.CI_DOCKER_LABEL }}
11 changes: 6 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,15 @@
FROM python:3.8-slim-buster

# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt /app/requirements.txt

WORKDIR /app
COPY ./requirements.txt .

RUN pip3 install -r requirements.txt

# Copies your code file from your action repository to the filesystem path `/` of the container
COPY deadseeker /app/deadseeker/
COPY deadseeker /modules/deadseeker/

# Adds our module to sys.path so python can find it
ENV PYTHONPATH "${PYTHONPATH}:/modules/"

# Code file to execute when the docker container starts up (`deadseeker.py`)
CMD [ "python", "-m", "deadseeker.action" ]
ENTRYPOINT [ "python", "-m", "deadseeker.action" ]

0 comments on commit 8e0fd89

Please sign in to comment.