Files
button/Dockerfile
2020-04-25 02:32:06 +00:00

17 lines
335 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 pip install -r requirements.txt
RUN useradd -ms /bin/bash django
RUN chown -R django .
USER django
RUN python manage.py collectstatic
CMD ["gunicorn","-b",":8000", "-w", "4", "config.wsgi"]