Fixes for docker

This commit is contained in:
norohind 2023-11-29 17:08:32 +03:00
parent f7f40738d0
commit 33d776cd70
4 changed files with 5 additions and 3 deletions

View File

@ -20,6 +20,8 @@ COPY --from=builder /app/wheels /wheels
COPY --from=builder /app/requirements.txt .
RUN pip install --no-cache /wheels/*
RUN mkdir -p /data && chown user:user /data
USER user
COPY . .

View File

@ -3,5 +3,5 @@
set -eu
python3 generate_uswgi_config.py
exec uwsgi -c /tmp/uwsgi.ini
exec uwsgi /tmp/uwsgi.ini

View File

@ -4,4 +4,5 @@ falcon==3.0.1
idna==2.10
requests==2.25.1
urllib3==1.26.6
waitress==2.0.0
# waitress==2.0.0
uwsgi

1
web.py
View File

@ -1,5 +1,4 @@
import falcon
import waitress
import json
import random