Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
Set the PYTHONPATH (#25)
Browse files Browse the repository at this point in the history
When GitHub executes the action, the current working directory is **not** WORKDIR.
  • Loading branch information
brettcannon authored Apr 8, 2020
1 parent 48a51ed commit 9ca2248
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,11 @@ RUN python -m pip --disable-pip-version-check --no-cache-dir --quiet install poe

COPY pyproject.toml .
COPY poetry.lock .
# In case GitHub Actions ever starts caching intermediate containers, install the source in a separate step.
RUN poetry install --quiet --no-interaction --no-ansi --no-dev --no-root

ADD release_often ./release_often
ENV PYTHONPATH "/app:${PYTHONPATH}"

# During debugging, this entry point will be overridden. For more information, refer to https://aka.ms/vscode-docker-python-debug
# When GitHub executes this action, CWD is set to $GITHUB_WORKSPACE, **not** WORKDIR.
ENTRYPOINT ["python", "-m", "release_often"]

0 comments on commit 9ca2248

Please sign in to comment.