Remove start.sh entrypoint

This commit is contained in:
2025-12-01 14:27:56 -05:00
parent 603613cac1
commit b8e4ce1a91
2 changed files with 1 additions and 18 deletions
+1 -5
View File
@@ -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"]
-13
View File
@@ -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