diff --git a/Containerfile b/Containerfile index 2bd8d00..5a52fa4 100644 --- a/Containerfile +++ b/Containerfile @@ -3,9 +3,9 @@ FROM docker.io/library/debian:trixie-slim # XXX: Debian Experimental required for python3-sqlalchemy (>= 2) RUN sed -i -e 's/Suites: trixie trixie-updates/\0 experimental/' /etc/apt/sources.list.d/debian.sources RUN apt-get update && \ - apt-get upgrade -y --no-install-recommends python3-asyncpg python3-pip python3-poetry-core python3-quart python3-requests python3-sqlalchemy/experimental + apt-get upgrade -y --no-install-recommends python3-asyncpg python3-hypercorn python3-pip python3-poetry-core python3-quart python3-requests python3-sqlalchemy/experimental COPY . /usr/local/src RUN pip install --break-system-packages --no-deps --editable /usr/local/src -# TODO: The Quart internal server is only for development -CMD ["quart", "--app=glvd.web", "run", "--host=::"] +ENTRYPOINT ["hypercorn", "glvd.web.app:app"] +CMD [] diff --git a/src/glvd/web/app.py b/src/glvd/web/app.py new file mode 100644 index 0000000..7fc4632 --- /dev/null +++ b/src/glvd/web/app.py @@ -0,0 +1,6 @@ +# SPDX-License-Identifier: MIT + +from . import create_app + + +app = create_app()