Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -2
Dockerfile
CHANGED
|
@@ -11,7 +11,9 @@ RUN apt-get update && apt-get install -y \
|
|
| 11 |
|
| 12 |
# Copy requirements first for better caching
|
| 13 |
COPY requirements.txt .
|
| 14 |
-
|
|
|
|
|
|
|
| 15 |
|
| 16 |
# Copy application code
|
| 17 |
COPY . .
|
|
@@ -23,5 +25,5 @@ ENV PYTHONUNBUFFERED=1
|
|
| 23 |
# Expose port
|
| 24 |
EXPOSE 5000
|
| 25 |
|
| 26 |
-
# Run the application
|
| 27 |
CMD ["python", "run.py", "--mode", "flask"]
|
|
|
|
| 11 |
|
| 12 |
# Copy requirements first for better caching
|
| 13 |
COPY requirements.txt .
|
| 14 |
+
# Remove pipecat from requirements to avoid the error
|
| 15 |
+
RUN grep -v "pipecat" requirements.txt > requirements_simplified.txt && \
|
| 16 |
+
pip install --no-cache-dir -r requirements_simplified.txt
|
| 17 |
|
| 18 |
# Copy application code
|
| 19 |
COPY . .
|
|
|
|
| 25 |
# Expose port
|
| 26 |
EXPOSE 5000
|
| 27 |
|
| 28 |
+
# Run the simplified application
|
| 29 |
CMD ["python", "run.py", "--mode", "flask"]
|