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"]