From 33d776cd70c32b7fcd656c78f8489aed0f54456b Mon Sep 17 00:00:00 2001 From: norohind <60548839+norohind@users.noreply.github.com> Date: Wed, 29 Nov 2023 17:08:32 +0300 Subject: [PATCH] Fixes for docker --- Dockerfile | 2 ++ entrypoint.sh | 2 +- requirements.txt | 3 ++- web.py | 1 - 4 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 033254f..baa9dd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 . . diff --git a/entrypoint.sh b/entrypoint.sh index dc8f851..c4bb79d 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,5 +3,5 @@ set -eu python3 generate_uswgi_config.py -exec uwsgi -c /tmp/uwsgi.ini +exec uwsgi /tmp/uwsgi.ini diff --git a/requirements.txt b/requirements.txt index 352ab58..2a8171b 100644 --- a/requirements.txt +++ b/requirements.txt @@ -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 diff --git a/web.py b/web.py index e4d0e9b..5102d7d 100644 --- a/web.py +++ b/web.py @@ -1,5 +1,4 @@ import falcon -import waitress import json import random