Compare commits

...

3 Commits

Author SHA1 Message Date
ducoterra
8404d43222 use venv for tests 2020-04-24 22:10:36 -04:00
ducoterra
f31106dd29 add venv 2020-04-24 22:06:56 -04:00
ducoterra
fbd8b0e2a7 python -m 2020-04-24 21:59:30 -04:00
2 changed files with 5 additions and 4 deletions

View File

@@ -28,7 +28,7 @@ test:
name: $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
entrypoint: [""]
script:
- python manage.py test
- venv/bin/python manage.py test
deploy:
only:

View File

@@ -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 ["gunicorn","-b",":8000", "-w", "4", "config.wsgi"]
CMD ["venv/bin/gunicorn","-b",":8000", "-w", "4", "config.wsgi"]