Update Dockerfile
Browse files- Dockerfile +19 -5
Dockerfile
CHANGED
@@ -1,6 +1,20 @@
|
|
|
|
1 |
FROM python:3.11-slim
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
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 /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"]
|