Update Dockerfile
Browse files- Dockerfile +4 -18
Dockerfile
CHANGED
@@ -1,20 +1,6 @@
|
|
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 /pipecat
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
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_webhook_and_start.py", "-v", "--log-file=/app/test.log", "--log-file-level=INFO"]
|
|
|
|
|
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"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|