Update Dockerfile
Browse files- Dockerfile +8 -10
Dockerfile
CHANGED
@@ -2,19 +2,17 @@
|
|
2 |
FROM python:3.11-slim
|
3 |
|
4 |
# Set working directory
|
5 |
-
WORKDIR /
|
6 |
|
7 |
-
# Copy application and test files
|
8 |
-
COPY
|
9 |
-
COPY test_pipecat_phone_chatbot.py .
|
10 |
-
COPY requirements.txt .
|
11 |
|
12 |
-
# Install dependencies
|
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
|
17 |
-
EXPOSE
|
18 |
|
19 |
-
# Command to run the
|
20 |
-
CMD ["
|
|
|
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"]
|