randydev commited on
Commit
172da20
·
verified ·
1 Parent(s): bce5886
Files changed (1) hide show
  1. 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
- COPY . .
 
41
  COPY requirements.txt .
42
- RUN pip3 install --upgrade pip setuptools
43
- RUN pip3 install -r requirements.txt
44
 
45
- RUN mkdir -p /.cache/akn \
46
- && chown -R 1000:0 . \
47
- && chmod -R 777 /.cache/akn \
48
- && chmod -R 777 /.cache
49
 
50
- COPY version.json /.cache/akn/version.json
 
51
 
52
- RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz
53
- RUN wget https://johnvansickle.com/ffmpeg/builds/ffmpeg-git-amd64-static.tar.xz.md5
54
- RUN md5sum -c ffmpeg-git-amd64-static.tar.xz.md5
55
- RUN tar xvf ffmpeg-git-amd64-static.tar.xz
56
- RUN mv ffmpeg-git*/ffmpeg ffmpeg-git*/ffprobe /usr/local/bin/
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