Skip to content

Commit

Permalink
Merge remote-tracking branch 'aceberle/feature/fixing-action' into v3…
Browse files Browse the repository at this point in the history
….0.1-beta1
  • Loading branch information
ScholliYT committed May 25, 2021
2 parents b90c67d + 420d5dd commit 5202b7f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
1 change: 1 addition & 0 deletions .github/workflows/python-lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,5 @@ jobs:
-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 }}
14 changes: 6 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,18 +1,16 @@
# Container image that runs your code
# based on:
# https://pythonspeed.com/articles/activate-virtualenv-dockerfile/
FROM python:3.8-slim-buster

ENV VIRTUAL_ENV=/opt/venv
RUN python3 -m venv $VIRTUAL_ENV
ENV PATH="$VIRTUAL_ENV/bin:$PATH"

# We copy just the requirements.txt first to leverage Docker cache
COPY ./requirements.txt .
RUN python -m pip install --upgrade pip && pip install -r 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 ./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`)
ENTRYPOINT [ "python", "-m", "deadseeker.action" ]

0 comments on commit 5202b7f

Please sign in to comment.