slimshadow commited on
Commit
7144c9b
·
verified ·
1 Parent(s): 93c96e2

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -4
Dockerfile CHANGED
@@ -1,16 +1,19 @@
1
- # Use Python as the base image
2
  FROM python:3.9-slim
3
 
4
- # Set environment variables to avoid interactive prompts
5
  ENV DEBIAN_FRONTEND=noninteractive
6
  ENV TZ=Etc/UTC
7
 
8
- # Install system dependencies and ffmpeg
9
- RUN apt-get update && apt-get install -y ffmpeg tzdata && apt-get clean
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