Deadmon commited on
Commit
85bc30c
·
verified ·
1 Parent(s): 47cee22

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +19 -5
Dockerfile CHANGED
@@ -1,6 +1,20 @@
 
1
  FROM python:3.11-slim
2
- WORKDIR /pipecat
3
- COPY . .
4
- RUN pip install --no-cache-dir -r requirements.txt
5
- EXPOSE 7860
6
- CMD ["uvicorn", "bot_runner:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Python slim image to keep the image size small
2
  FROM python:3.11-slim
3
+
4
+ # Set working directory
5
+ WORKDIR /app
6
+
7
+ # Copy application and test files
8
+ COPY webhook_handler.py .
9
+ COPY test_pipecat_phone_chatbot.py .
10
+ COPY requirements.txt .
11
+
12
+ # Install dependencies, including pytest for testing
13
+ RUN pip install --no-cache-dir -r requirements.txt && \
14
+ pip install --no-cache-dir requests pytest
15
+
16
+ # Expose the port for the webhook server (optional, for manual testing)
17
+ EXPOSE 8000
18
+
19
+ # Command to run the test suite with verbose output
20
+ CMD ["pytest", "test_pipecat_phone_chatbot.py", "-v", "--log-file=/app/test.log", "--log-file-level=INFO"]