diff --git a/Dockerfile b/Dockerfile index 4507c94..0eea82e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,4 +28,5 @@ RUN apt-get update && apt-get install -y --no-install-recommends \ COPY --from=builder /usr/local /usr/local/ COPY . . +RUN sed -i 's/\r$//' run.sh && chmod +x run.sh CMD ["/bin/bash", "run.sh"] diff --git a/docker-compose.yml b/docker-compose.yml index 4be9089..98c222b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -9,7 +9,6 @@ services: - postgres networks: - db_nw - - web_nw ports: - "8000:5000" restart: unless-stopped @@ -44,7 +43,5 @@ services: networks: db_nw: driver: bridge - web_nw: - driver: bridge volumes: - dbdata: \ No newline at end of file + dbdata: diff --git a/run.sh b/run.sh index c32838a..52f79f0 100644 --- a/run.sh +++ b/run.sh @@ -12,7 +12,7 @@ set -e # Exit script immediately on failure PORT=${PORT:-5000} GUNICORN_WORKERS=${GUNICORN_WORKERS:-1} -GUNICORN_THREADS=${GUNICORN_THREADS:-0} +GUNICORN_THREADS=${GUNICORN_THREADS:-1} GUNICORN_TIMEOUT=${GUNICORN_TIMEOUT:-60} GUNICORN_KEEP_ALIVE=${GUNICORN_KEEP_ALIVE:-60}