add nginx-wsgi-django-mysql example
Signed-off-by: IML <shino1025@naver.com>
This commit is contained in:
16
nginx-wsgi-django-mysql/django/Dockerfile
Normal file
16
nginx-wsgi-django-mysql/django/Dockerfile
Normal 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"]
|
Reference in New Issue
Block a user