From 6ae18114770403e9b0874db1069bd350152f5952 Mon Sep 17 00:00:00 2001 From: Trenton H <797416+stumpylog@users.noreply.github.com> Date: Mon, 10 Mar 2025 11:28:52 -0700 Subject: [PATCH] Fixes the build, probably --- Dockerfile | 2 +- webserver.py | 19 ------------------- 2 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 webserver.py diff --git a/Dockerfile b/Dockerfile index 0d04cc51e..d6ae9dbd1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -79,7 +79,7 @@ RUN set -eux \ && rm -rf /var/lib/apt/lists/* # Copy our service defs and filesystem -COPY --link ./docker/rootfs / +COPY ./docker/rootfs / # Stage: main-app # Purpose: The final image diff --git a/webserver.py b/webserver.py deleted file mode 100644 index e23c3fed2..000000000 --- a/webserver.py +++ /dev/null @@ -1,19 +0,0 @@ -if __name__ == "__main__": - import os - - from granian import Granian - from granian.constants import Interfaces - - Granian( - "paperless.asgi:application", - interface=Interfaces.ASGINL, - address=os.getenv("GRANIAN_HOST") or os.getenv("PAPERLESS_BIND_ADDR", "::"), - port=int(os.getenv("GRANIAN_PORT") or os.getenv("PAPERLESS_PORT") or 8000), - workers=int( - os.getenv("GRANIAN_WORKERS") - or os.getenv("PAPERLESS_WEBSERVER_WORKERS") - or 1, - ), - websockets=True, - url_path_prefix=os.getenv("PAPERLESS_FORCE_SCRIPT_NAME"), - ).serve()