Dockerfile - temporary added uvicorn ssl support (in future releases uvicorn listens to http and tls termination should be done by a proxy like traefik)

This commit is contained in:
Oscar Krause 2022-12-19 14:33:23 +01:00
parent 1f8f85479f
commit 8e95f700ef

View File

@ -13,4 +13,4 @@ RUN apk update \
COPY app /app
HEALTHCHECK --start-period=30s --interval=10s --timeout=5s --retries=3 CMD curl --fail http://localhost/status || exit 1
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "443", "--app-dir", "/app", "--proxy-headers"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "443", "--app-dir", "/app", "--proxy-headers", "--ssl-keyfile", "/app/cert/webserver.key", "--ssl-certfile", "/app/cert/webserver.crt"]