aboutsummaryrefslogtreecommitdiffstats
path: root/Dockerfile
diff options
context:
space:
mode:
authorGravatar Joe Banks <[email protected]>2021-03-10 18:54:29 +0000
committerGravatar Joe Banks <[email protected]>2021-03-10 18:54:29 +0000
commitaeb72c922c675f1eeb4c279874c8ef3561dde437 (patch)
treec65a97feadf6411693444883f69d21b4454565f5 /Dockerfile
parentBump lint workflow to py3.9 (diff)
Disable poetry venv creation in Dockerfile and linting workflow
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Dockerfile b/Dockerfile
index 641a180f..f24f1eaa 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -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