diff --git a/Dockerfile b/Dockerfile index 975bdfa5ea..16335a7663 100644 --- a/Dockerfile +++ b/Dockerfile @@ -12,8 +12,9 @@ RUN pip install -r requirements.txt COPY . /app/ -RUN SECRET_KEY=dummy-build-secret python manage.py collectstatic --noinput +RUN SECRET_KEY="$(python -c 'import secrets; print(secrets.token_urlsafe(50))')" \ + python manage.py collectstatic --noinput EXPOSE 8000 -CMD ["gunicorn", "oc_lettings_site.wsgi:application", "--bind", "0.0.0.0:8000"] \ No newline at end of file +CMD ["gunicorn", "oc_lettings_site.wsgi:application", "--bind", "0.0.0.0:8000", "--worker-class", "gthread", "--workers", "2", "--threads", "2", "--timeout", "30", "--access-logfile", "-"] diff --git a/lettings/templates/lettings/index.html b/lettings/templates/lettings/index.html index bbbe6478d8..5934d609ea 100644 --- a/lettings/templates/lettings/index.html +++ b/lettings/templates/lettings/index.html @@ -33,7 +33,7 @@