fixin Dockerfile
This commit is contained in:
@@ -4,7 +4,7 @@ RUN apt-get update && apt-get install -y build-essential
|
|||||||
COPY requirements.txt .
|
COPY requirements.txt .
|
||||||
RUN python3 -m venv /opt/venv && \
|
RUN python3 -m venv /opt/venv && \
|
||||||
. /opt/venv/bin/activate && \
|
. /opt/venv/bin/activate && \
|
||||||
pip3 install uwsgi && \
|
pip3 install uwsgi gevent && \
|
||||||
pip3 install -r requirements.txt
|
pip3 install -r requirements.txt
|
||||||
|
|
||||||
FROM python:3.8-slim-buster
|
FROM python:3.8-slim-buster
|
||||||
|
|||||||
@@ -11,4 +11,9 @@ DEBUG = True
|
|||||||
FLATPAGES_ROOT = os.path.abspath(pages_root)
|
FLATPAGES_ROOT = os.path.abspath(pages_root)
|
||||||
DEFAULT_TEMPLATE = 'page.html'
|
DEFAULT_TEMPLATE = 'page.html'
|
||||||
PAGES_ROOT='data'
|
PAGES_ROOT='data'
|
||||||
STATIC_ROOT='static'
|
STATIC_ROOT='static'
|
||||||
|
FLATPAGES_EXTENSION_CONFIGS = {
|
||||||
|
'codehilite': {
|
||||||
|
'linenums': 'True'
|
||||||
|
}
|
||||||
|
}
|
||||||
10
uwsgi.ini
10
uwsgi.ini
@@ -6,14 +6,14 @@ master = true
|
|||||||
# No. of processes can be increased
|
# No. of processes can be increased
|
||||||
processes = 7
|
processes = 7
|
||||||
chown-socket =www-data:www-data
|
chown-socket =www-data:www-data
|
||||||
virtualenv = /srv/simple_sample_flat_index/.env
|
virtualenv = /opt/venv/
|
||||||
pythonpath = /srv/simple_sample_flat_index/
|
pythonpath = /opt/venv/
|
||||||
#pidfile = /srv/simple_sample_flat_index/uwsgi.pid
|
#pidfile = /srv/simple_sample_flat_index/uwsgi.pid
|
||||||
#socket = /srv/simple_sample_flat_index/uwsgi.sock
|
#socket = /srv/simple_sample_flat_index/uwsgi.sock
|
||||||
pidfile=/var/run/simple_sample.pid
|
pidfile=/var/run/doc2020.pid
|
||||||
socket = /var/run/simple_sample.sock
|
socket = /var/run/dock2020.sock
|
||||||
chmod-socket = 666
|
chmod-socket = 666
|
||||||
module = simple_sample
|
module = app
|
||||||
callable= app
|
callable= app
|
||||||
wsgi-file = app.py
|
wsgi-file = app.py
|
||||||
logdate = true
|
logdate = true
|
||||||
|
|||||||
Reference in New Issue
Block a user