Spaces:
Running
Running
- Dockerfile +13 -13
Dockerfile
CHANGED
@@ -37,23 +37,23 @@ RUN apt -qq update && \
|
|
37 |
apt-get clean && \
|
38 |
rm -rf /var/lib/apt/lists/
|
39 |
|
40 |
-
|
|
|
41 |
COPY requirements.txt .
|
42 |
-
|
43 |
-
RUN pip3 install -r requirements.txt
|
44 |
|
45 |
-
RUN mkdir -p /.cache/akn \
|
46 |
-
|
47 |
-
|
48 |
-
&& chmod -R 777 /.cache
|
49 |
|
50 |
-
|
|
|
51 |
|
52 |
-
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
|
58 |
EXPOSE 7860
|
59 |
|
|
|
37 |
apt-get clean && \
|
38 |
rm -rf /var/lib/apt/lists/
|
39 |
|
40 |
+
WORKDIR /app
|
41 |
+
|
42 |
COPY requirements.txt .
|
43 |
+
COPY . .
|
|
|
44 |
|
45 |
+
RUN mkdir -p /app/.cache/akn && \
|
46 |
+
chmod -R 777 /app/.cache && \
|
47 |
+
cp version.json /app/.cache/akn/version.json
|
|
|
48 |
|
49 |
+
RUN pip3 install --upgrade pip setuptools
|
50 |
+
RUN pip3 install -r requirements.txt
|
51 |
|
52 |
+
RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz && \
|
53 |
+
wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.md5 && \
|
54 |
+
md5sum -c ffmpeg-git-amd64-static.tar.xz.md5 && \
|
55 |
+
tar xvf ffmpeg-git-amd64-static.tar.xz && \
|
56 |
+
mv ffmpeg-git*/ffmpeg ffmpeg-git*/ffprobe /usr/local/bin/
|
57 |
|
58 |
EXPOSE 7860
|
59 |
|