Dockerfile 495 Bytes
Newer Older
Jon Yu's avatar
Jon Yu committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
FROM python:3.8-slim

ENV PYTHONUNBUFFERED=1
ENV PIP_DISABLE_PIP_VERSION_CHECK=1

WORKDIR /usr/src/app

COPY . /usr/src/app

RUN pip install -r requirements.txt

# Workaround for permission issue on OpenShift
RUN chmod -R g+rw /usr/src/app

WORKDIR /usr/src/app/um_django_template_project

EXPOSE 8000

ENTRYPOINT ["/usr/src/app/docker-entrypoint.sh"]

Jon Yu's avatar
Jon Yu committed
21
CMD ["gunicorn", "--bind=0.0.0.0:8000", "--workers=2", "--threads=4", "--access-logfile=-", "--log-file=-", "um_django_template_project.wsgi"]