Compare commits
5 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d2bf889e1f | ||
|
|
a70aa8840f | ||
|
|
8404d43222 | ||
|
|
f31106dd29 | ||
|
|
fbd8b0e2a7 |
@@ -6,12 +6,12 @@ COPY api api
|
|||||||
COPY ui ui
|
COPY ui ui
|
||||||
COPY manage.py manage.py
|
COPY manage.py manage.py
|
||||||
COPY requirements.txt requirements.txt
|
COPY requirements.txt requirements.txt
|
||||||
|
RUN pip install -r requirements.txt
|
||||||
|
|
||||||
RUN useradd -ms /bin/bash django
|
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 manage.py collectstatic
|
RUN python manage.py collectstatic
|
||||||
|
|
||||||
CMD ["gunicorn","-b",":8000", "-w", "4", "config.wsgi"]
|
CMD ["gunicorn","-b",":8000", "-w", "4", "config.wsgi"]
|
||||||
Reference in New Issue
Block a user