We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e69fc48 commit d55cf02Copy full SHA for d55cf02
tools/chatbot/Dockerfile
@@ -27,7 +27,8 @@ FROM dhi.io/python:3.13
27
28
# Set environment variables
29
ENV PYTHONDONTWRITEBYTECODE=1 \
30
- PYTHONUNBUFFERED=1
+ PYTHONUNBUFFERED=1 \
31
+ PATH="/app/.venv/bin:$PATH"
32
33
# Set the working directory
34
WORKDIR /app
@@ -41,6 +42,5 @@ COPY . .
41
42
# Run as non-root user
43
USER 1000:1000
44
-# Run the application using the virtual environment directly
45
-ENTRYPOINT ["/app/.venv/bin/python"]
46
-CMD ["chatbot.py"]
+# Run the application using the virtual environment's Python (via PATH)
+CMD ["python", "chatbot.py"]
0 commit comments