Skip to content

Commit 055638f

Browse files
committed
Fix entrypoint
1 parent 4f17fdb commit 055638f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

services/chatbot/Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,6 @@ COPY src /app
1616
COPY certs /app/certs
1717
COPY retrieval /app/retrieval
1818
ENV PYTHONPATH "${PYTHONPATH}:/app"
19-
CMD /entrypoint.sh
19+
COPY entrypoint.sh /app/entrypoint.sh
20+
CMD /app/entrypoint.sh
2021
EXPOSE 5002

services/chatbot/entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,4 @@ if [ "$TLS_ENABLED" = "true" ] || [ "$TLS_ENABLED" = "1" ]; then
3131
gunicorn --workers=1 --threads=20 --timeout 60 --bind 0.0.0.0:${SERVER_PORT} --certfile $TLS_CERTIFICATE --keyfile $TLS_KEY --log-level=debug chatbot_api:app
3232
else:
3333
gunicorn --bind 0.0.0.0:${SERVER_PORT} chatbot_api:app
34+
fi

0 commit comments

Comments
 (0)