From b8e4ce1a91ea3cd3c38c8a72fb56f6589ac7cf0f Mon Sep 17 00:00:00 2001 From: Kenneth Reitz Date: Mon, 1 Dec 2025 14:27:56 -0500 Subject: [PATCH] Remove start.sh entrypoint --- Dockerfile | 6 +----- start.sh | 13 ------------- 2 files changed, 1 insertion(+), 18 deletions(-) delete mode 100644 start.sh diff --git a/Dockerfile b/Dockerfile index dd141e8..fcb22ea 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,9 +49,5 @@ COPY . . # Build search index at image build time for fast searches RUN python3 -c "from kjvstudy_org.utils.search_index import init_search_index; init_search_index()" -# Startup script for uvicorn -COPY start.sh /app/start.sh -RUN chmod +x /app/start.sh - # Run uvicorn directly (no nginx sidecar) -CMD ["/app/start.sh"] +CMD ["sh", "-c", "uv run uvicorn kjvstudy_org.server:app --host ${HOST:-0.0.0.0} --port ${PORT:-8000} --workers ${WORKERS:-1} --proxy-headers"] diff --git a/start.sh b/start.sh deleted file mode 100644 index 39a49e8..0000000 --- a/start.sh +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/sh -set -e - -WORKERS=${WORKERS:-1} -HOST=${HOST:-0.0.0.0} -PORT=${PORT:-8000} - -# Run the app directly with uvicorn (no nginx proxy) -exec uv run uvicorn kjvstudy_org.server:app \ - --host "${HOST}" \ - --port "${PORT}" \ - --workers "${WORKERS}" \ - --proxy-headers