Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -8
Dockerfile
CHANGED
|
@@ -3,9 +3,8 @@ FROM python:3.9-slim
|
|
| 3 |
# Install system dependencies including FFmpeg
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y --no-install-recommends \
|
| 6 |
-
ffmpeg \
|
| 7 |
-
|
| 8 |
-
chmod 777 temp_files
|
| 9 |
|
| 10 |
# Set working directory
|
| 11 |
WORKDIR /app
|
|
@@ -19,11 +18,11 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
| 19 |
# Copy application code
|
| 20 |
COPY . .
|
| 21 |
|
| 22 |
-
# Create directory for temporary files
|
| 23 |
-
RUN mkdir -p temp_files
|
| 24 |
|
| 25 |
-
# Expose the port the app runs on
|
| 26 |
EXPOSE 8000
|
| 27 |
|
| 28 |
-
# Command to run the application
|
| 29 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|
|
|
|
| 3 |
# Install system dependencies including FFmpeg
|
| 4 |
RUN apt-get update && \
|
| 5 |
apt-get install -y --no-install-recommends \
|
| 6 |
+
ffmpeg && \
|
| 7 |
+
rm -rf /var/lib/apt/lists/*
|
|
|
|
| 8 |
|
| 9 |
# Set working directory
|
| 10 |
WORKDIR /app
|
|
|
|
| 18 |
# Copy application code
|
| 19 |
COPY . .
|
| 20 |
|
| 21 |
+
# Create directory for temporary files and set permissions
|
| 22 |
+
RUN mkdir -p temp_files && chmod 777 temp_files
|
| 23 |
|
| 24 |
+
# Expose the port the app runs on (change to 7860 if needed)
|
| 25 |
EXPOSE 8000
|
| 26 |
|
| 27 |
+
# Command to run the application on port 7860
|
| 28 |
+
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
|