From 3c7c91508790d0b3083e49d0d7752201655faa4f Mon Sep 17 00:00:00 2001 From: David Habgood Date: Sat, 14 Oct 2023 13:30:28 +1100 Subject: [PATCH] allow port and host to be configurable when running Prez from Docker (#163) --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 8baf51d5..fce68b24 100644 --- a/Dockerfile +++ b/Dockerfile @@ -50,4 +50,4 @@ COPY pyproject.toml . # copy the venv folder from builder image COPY --from=builder-base /app/.venv ./.venv -ENTRYPOINT ["uvicorn", "prez.app:app", "--host=0.0.0.0", "--port=8000", "--proxy-headers"] +ENTRYPOINT uvicorn prez.app:app --host=${HOST:-0.0.0.0} --port=${PORT:-8000} --proxy-headers \ No newline at end of file