Commit b7592e6e authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

python 3.8

parent 7ed3bbc3
FROM python:3.6
FROM python:3.8
ENV PYTHONUNBUFFERED 1
EXPOSE 8086
......@@ -13,7 +13,7 @@ RUN apt-get update && \
apache2 \
apache2-dev \
libapache2-mod-xsendfile \
apache2-utils \
libapache2-mod-wsgi-py3 \
python3-dev \
locales \
&& rm -rf /var/lib/apt/lists/*
......
LoadModule wsgi_module /usr/local/lib/python3.6/site-packages/mod_wsgi/server/mod_wsgi-py36.cpython-36m-x86_64-linux-gnu.so
Listen 8086
WSGIRestrictEmbedded On
LogLevel info
......@@ -14,7 +13,7 @@ ErrorLog "|/usr/bin/rotatelogs /code/persistent_volume/apache.%Y-%m-%d-%H_%M_%S.
DocumentRoot /var/www/html
WSGIScriptAlias / /code/${PROJECT_NAME}/wsgi.py process-group=${PROJECT_NAME}
WSGIDaemonProcess ${PROJECT_NAME} python-path=/code:/usr/local/lib/python3.6/site-packages
WSGIDaemonProcess ${PROJECT_NAME} python-path=/code:/usr/local/lib/python3.8/site-packages
WSGIProcessGroup ${PROJECT_NAME}
Alias ${STATIC_URL}/ /code/.static/
......@@ -28,6 +27,7 @@ ErrorLog "|/usr/bin/rotatelogs /code/persistent_volume/apache.%Y-%m-%d-%H_%M_%S.
WSGIApplicationGroup %{GLOBAL}
WSGIScriptReloading On
Require all granted
LimitRequestBody 5242880
</Directory>
<Directory /code/.static>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment