aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-03-23 10:15:58 -0700
committerGravatar MarkKoz <[email protected]>2020-03-23 10:38:20 -0700
commit76c5e84ba17eb8540f097497c9c3df0c6e65831a (patch)
tree9bdf8d022cf91a409ff7d41005a3d793188ac07b
parentUse a config file for gunicorn (diff)
Fix #66: venv being created in container
`pipenv run` creates a venv because it cannot detect that a --system install was done. The solution is to invoke gunicorn directly.
-rw-r--r--docker/Dockerfile4
1 files changed, 2 insertions, 2 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 5ef8a88..b6c2f77 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -1,7 +1,7 @@
FROM pythondiscord/snekbox-venv:latest
-ENTRYPOINT ["pipenv", "run"]
-CMD ["snekbox"]
+ENTRYPOINT ["gunicorn"]
+CMD ["-c", "config/gunicorn.conf.py", "snekbox.api.app"]
COPY . /snekbox
WORKDIR /snekbox