add nginx-wsgi-django-mysql example

Signed-off-by: IML <shino1025@naver.com>
This commit is contained in:
IML
2022-02-28 21:13:38 +09:00
parent 6531426a96
commit dced7d7016
15 changed files with 488 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
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"]