diff options
author | 2021-03-10 18:54:29 +0000 | |
---|---|---|
committer | 2021-03-10 18:54:29 +0000 | |
commit | aeb72c922c675f1eeb4c279874c8ef3561dde437 (patch) | |
tree | c65a97feadf6411693444883f69d21b4454565f5 /Dockerfile | |
parent | Bump lint workflow to py3.9 (diff) |
Disable poetry venv creation in Dockerfile and linting workflow
Diffstat (limited to 'Dockerfile')
-rw-r--r-- | Dockerfile | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,11 +1,9 @@ FROM python:3.9-slim -# Set SHA build argument -ARG git_sha="development" - # Set pip to have cleaner logs and no saved cache ENV PIP_NO_CACHE_DIR=false \ - POETRY_HOME="/opt/poetry" + POETRY_HOME="/opt/poetry" \ + POETRY_VIRTUALENVS_CREATE=false # Install git to be able to dowload git dependencies in the Pipfile RUN apt-get -y update \ @@ -24,11 +22,13 @@ COPY pyproject.toml poetry.lock /bot/ RUN poetry install --no-dev --no-interaction --no-ansi +# Set SHA build argument +ARG git_sha="development" ENV GIT_SHA=$git_sha COPY . . -CMD ["poetry", "run", "python", "-m", "bot"] +CMD ["python", "-m", "bot"] # Define docker persistent volumes VOLUME /bot/bot/log /bot/data |