shiveshnavin commited on
Commit
aae47f7
·
unverified ·
1 Parent(s): 1f09edf

Create Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +33 -0
Dockerfile ADDED
@@ -0,0 +1,33 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ FROM python:3.10-slim
2
+
3
+
4
+ ENV DEBIAN_FRONTEND=noninteractive \
5
+ PIP_NO_CACHE_DIR=1 \
6
+ PYTHONDONTWRITEBYTECODE=1 \
7
+ PYTHONUNBUFFERED=1
8
+
9
+
10
+ RUN apt-get update && apt-get install -y --no-install-recommends \
11
+ wget xz-utils ca-certificates && \
12
+ rm -rf /var/lib/apt/lists/*
13
+
14
+
15
+ RUN wget -O /tmp/ffmpeg.tar.xz https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz && \
16
+ mkdir -p /opt/ffmpeg && \
17
+ tar -xJf /tmp/ffmpeg.tar.xz -C /opt/ffmpeg --strip-components=1 && \
18
+ ln -s /opt/ffmpeg/ffmpeg /usr/local/bin/ffmpeg && \
19
+ ln -s /opt/ffmpeg/ffprobe /usr/local/bin/ffprobe && \
20
+ ffmpeg -version && ffprobe -version
21
+
22
+
23
+ WORKDIR /app
24
+ COPY requirements.txt ./
25
+ RUN pip install -r requirements.txt
26
+
27
+
28
+ COPY scripts ./scripts
29
+ COPY app.py ./app.py
30
+
31
+
32
+ EXPOSE 7860
33
+ CMD ["python", "app.py"]