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()