Files
button/Dockerfile
ducoterra fbd8b0e2a7 python -m
2020-04-24 21:59:30 -04:00

17 lines
352 B
Docker

FROM python:3.8.2
WORKDIR /app
COPY config config
COPY api api
COPY ui ui
COPY manage.py manage.py
COPY requirements.txt requirements.txt
RUN useradd -ms /bin/bash django
RUN chown -R django .
USER django
RUN pip install -r requirements.txt --user
RUN python manage.py collectstatic
CMD ["python -m gunicorn","-b",":8000", "-w", "4", "config.wsgi"]