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

Commit

Permalink
Use ADD properly to copy source files into the container (#24)
Browse files Browse the repository at this point in the history
Also re-arrange things in case GH ever starts to cache image layers.
  • Loading branch information
brettcannon authored Apr 7, 2020
1 parent f34de00 commit a5cf594
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,14 @@ RUN apt-get -qy update && apt-get -qy install git && \
rm -rf /var/cache/apt/* /var/lib/apt/lists/*

WORKDIR /app
ENV PYTHONPATH "/app:${PYTHONPATH}"

RUN python -m pip --disable-pip-version-check --no-cache-dir --quiet install poetry && poetry config virtualenvs.create false

COPY pyproject.toml .
COPY poetry.lock .
RUN python -m pip install --quiet poetry
RUN poetry config virtualenvs.create false
RUN poetry install --quiet --no-interaction --no-ansi --no-dev
RUN poetry install --quiet --no-interaction --no-ansi --no-dev --no-root

ADD release_often .
ADD release_often ./release_often

# During debugging, this entry point will be overridden. For more information, refer to https://aka.ms/vscode-docker-python-debug
ENTRYPOINT ["python", "-m", "release_often"]

0 comments on commit a5cf594

Please sign in to comment.