Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f31106dd29 |
@@ -11,7 +11,8 @@ RUN useradd -ms /bin/bash django
|
|||||||
RUN chown -R django .
|
RUN chown -R django .
|
||||||
|
|
||||||
USER django
|
USER django
|
||||||
RUN pip install -r requirements.txt --user
|
RUN python -m venv venv
|
||||||
RUN python manage.py collectstatic
|
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"]
|
CMD ["venv/bin/gunicorn","-b",":8000", "-w", "4", "config.wsgi"]
|
||||||
Reference in New Issue
Block a user