Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +7 -4
Dockerfile
CHANGED
@@ -1,16 +1,19 @@
|
|
1 |
-
# Use Python as the base
|
2 |
FROM python:3.9-slim
|
3 |
|
4 |
-
# Set environment variables to
|
5 |
ENV DEBIAN_FRONTEND=noninteractive
|
6 |
ENV TZ=Etc/UTC
|
7 |
|
8 |
-
# Install system dependencies
|
9 |
-
RUN apt-get update && apt-get install -y ffmpeg
|
10 |
|
11 |
# Set working directory
|
12 |
WORKDIR /app
|
13 |
|
|
|
|
|
|
|
14 |
# Copy application files
|
15 |
COPY . /app
|
16 |
|
|
|
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 |
|