Deadmon commited on
Commit
82c1c44
·
verified ·
1 Parent(s): bda4f40

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +8 -10
Dockerfile CHANGED
@@ -2,19 +2,17 @@
2
  FROM python:3.11-slim
3
 
4
  # Set working directory
5
- WORKDIR /pipecat
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"]
 
2
  FROM python:3.11-slim
3
 
4
  # Set working directory
5
+ WORKDIR /app
6
 
7
+ # Copy all application and test files
8
+ COPY . .
 
 
9
 
10
+ # Install dependencies
11
  RUN pip install --no-cache-dir -r requirements.txt && \
12
  pip install --no-cache-dir requests pytest
13
 
14
+ # Expose the port for the FastAPI server
15
+ EXPOSE 7860
16
 
17
+ # Command to run the application
18
+ CMD ["uvicorn", "bot_runner:app", "--host", "0.0.0.0", "--port", "7860", "--reload"]