Spaces:
Running
Running
Delete Dockerfile
Browse files- Dockerfile +0 -27
Dockerfile
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
# Use Python slim image as the base
|
2 |
-
FROM python:3.9-slim
|
3 |
-
|
4 |
-
# Set environment variables to suppress prompts and set a default timezone
|
5 |
-
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
-
ENV TZ=Etc/UTC
|
7 |
-
|
8 |
-
# Install system dependencies, including ffmpeg
|
9 |
-
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean
|
10 |
-
|
11 |
-
# Set working directory
|
12 |
-
WORKDIR /app
|
13 |
-
|
14 |
-
# Create a writable downloads directory
|
15 |
-
RUN mkdir -p /tmp/downloads && chmod -R 777 /tmp/downloads
|
16 |
-
|
17 |
-
# Copy application files
|
18 |
-
COPY . /app
|
19 |
-
|
20 |
-
# Install Python dependencies
|
21 |
-
RUN pip install --no-cache-dir -r requirements.txt
|
22 |
-
|
23 |
-
# Expose the application port
|
24 |
-
EXPOSE 8000
|
25 |
-
|
26 |
-
# Command to run the application
|
27 |
-
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "8000"]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|