Spaces:
Runtime error
Runtime error
Delete Dockerfile.unknown
#4
by
tejovk311
- opened
- Dockerfile.unknown +0 -35
Dockerfile.unknown
DELETED
|
@@ -1,35 +0,0 @@
|
|
| 1 |
-
FROM python:3.9-slim
|
| 2 |
-
|
| 3 |
-
# Install system dependencies for video processing
|
| 4 |
-
RUN apt-get update && apt-get install -y \
|
| 5 |
-
ffmpeg \
|
| 6 |
-
libsm6 \
|
| 7 |
-
libxext6 \
|
| 8 |
-
libxrender-dev \
|
| 9 |
-
libgl1-mesa-glx \
|
| 10 |
-
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
-
|
| 12 |
-
# Set working directory
|
| 13 |
-
WORKDIR /app
|
| 14 |
-
|
| 15 |
-
# Copy requirements file
|
| 16 |
-
COPY requirements.txt .
|
| 17 |
-
|
| 18 |
-
# Install Python dependencies
|
| 19 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
| 20 |
-
|
| 21 |
-
# Copy application code
|
| 22 |
-
COPY app.py .
|
| 23 |
-
|
| 24 |
-
# Create a directory for temporary files
|
| 25 |
-
RUN mkdir -p /tmp/video_processing && chmod 777 /tmp/video_processing
|
| 26 |
-
|
| 27 |
-
# Set environment variables
|
| 28 |
-
ENV PYTHONUNBUFFERED=1
|
| 29 |
-
ENV PORT=5000
|
| 30 |
-
|
| 31 |
-
# Expose port
|
| 32 |
-
EXPOSE 5000
|
| 33 |
-
|
| 34 |
-
# Command to run the application
|
| 35 |
-
CMD ["python", "app.py"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|