awesome-compose/nginx-wsgi-django-mysql/django/Dockerfile
IML dced7d7016 add nginx-wsgi-django-mysql example
Signed-off-by: IML <shino1025@naver.com>
2022-02-28 21:13:38 +09:00

16 lines
324 B
Docker

FROM python:3.9-alpine
COPY /sample/ /home/sample/
WORKDIR /home/sample/
RUN apk update && \
apk add --no-cache bash gcc musl-dev mariadb-connector-c-dev
RUN pip install --upgrade pip && \
pip install -r requirements.txt
EXPOSE 8000
CMD ["gunicorn","-w","2", \
"--bind","0.0.0.0:8000", \
"sample.wsgi:application"]