From e9426644a2e981b8fbaf809b0f93fe607521fc20 Mon Sep 17 00:00:00 2001 From: Andrew Williams Date: Sun, 18 Aug 2024 21:57:12 +0100 Subject: [PATCH] Fix Gunicorn config in Docker --- Dockerfile | 2 +- Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b8825aa..ff31a54 100644 --- a/Dockerfile +++ b/Dockerfile @@ -31,4 +31,4 @@ COPY --from=builder /runtime /usr/local COPY . /app WORKDIR /app EXPOSE 8000/tcp -CMD ["/usr/local/bin/gunicorn", "simple_webfinger.app:create_app()"] \ No newline at end of file +CMD ["/usr/local/bin/gunicorn", "simple_webfinger.app:create_app()", "-b", "0.0.0.0:8000"] \ No newline at end of file diff --git a/Makefile b/Makefile index fbe765c..4dc5f84 100644 --- a/Makefile +++ b/Makefile @@ -11,7 +11,7 @@ lint: .venv python3 -m poetry run ruff check --output-format=github --target-version=py37 . serve-uwsgi: - SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" python3 -m poetry run uwsgi -w "simple_webfinger.app:create_app()" --master --http 0.0.0.0:8000 + SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" python3 -m poetry run gunicorn "simple_webfinger.app:create_app()" serve: DEBUG_METRICS=1 SIMPLE_WEBFINGER_CONFIG_FILE="examples/example-config.yaml" FLASK_DEBUG=1 FLASK_APP="simple_webfinger.app:create_app()" python3 -m poetry run flask run