Files
button/Dockerfile
ducoterra f31106dd29 add venv
2020-04-24 22:06:56 -04:00

18 lines
386 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 python -m venv venv
RUN venv/bin/pip install -r requirements.txt
RUN venv/bin/python manage.py collectstatic
CMD ["venv/bin/gunicorn","-b",":8000", "-w", "4", "config.wsgi"]