Skip to content

Commit d55cf02

Browse files
author
Issam Kadar
committed
chore/security : fix chatbot dockerfile
1 parent e69fc48 commit d55cf02

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/chatbot/Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ FROM dhi.io/python:3.13
2727

2828
# Set environment variables
2929
ENV PYTHONDONTWRITEBYTECODE=1 \
30-
PYTHONUNBUFFERED=1
30+
PYTHONUNBUFFERED=1 \
31+
PATH="/app/.venv/bin:$PATH"
3132

3233
# Set the working directory
3334
WORKDIR /app
@@ -41,6 +42,5 @@ COPY . .
4142
# Run as non-root user
4243
USER 1000:1000
4344

44-
# Run the application using the virtual environment directly
45-
ENTRYPOINT ["/app/.venv/bin/python"]
46-
CMD ["chatbot.py"]
45+
# Run the application using the virtual environment's Python (via PATH)
46+
CMD ["python", "chatbot.py"]

0 commit comments

Comments
 (0)