From f31106dd29031c8ab5c8f01e10b4b3fe98cfd466 Mon Sep 17 00:00:00 2001 From: ducoterra Date: Fri, 24 Apr 2020 22:06:56 -0400 Subject: [PATCH] add venv --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 95ee2a6..1ae1c82 100644 --- a/Dockerfile +++ b/Dockerfile @@ -11,7 +11,8 @@ RUN useradd -ms /bin/bash django RUN chown -R django . USER django -RUN pip install -r requirements.txt --user -RUN python manage.py collectstatic +RUN python -m venv venv +RUN venv/bin/pip install -r requirements.txt +RUN venv/bin/python manage.py collectstatic -CMD ["python -m gunicorn","-b",":8000", "-w", "4", "config.wsgi"] \ No newline at end of file +CMD ["venv/bin/gunicorn","-b",":8000", "-w", "4", "config.wsgi"] \ No newline at end of file