Spaces:
Running
on
A10G
Running
on
A10G
anchor
commited on
Commit
•
e7921dd
1
Parent(s):
728ead8
Update Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
CHANGED
@@ -20,6 +20,25 @@ ENV HOME=/home/user \
|
|
20 |
# Set the working directory to the user's home directory
|
21 |
WORKDIR $HOME/app
|
22 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
RUN echo "docker start"\
|
24 |
&& whoami \
|
25 |
&& which python \
|
|
|
20 |
# Set the working directory to the user's home directory
|
21 |
WORKDIR $HOME/app
|
22 |
|
23 |
+
|
24 |
+
################################################# INSTALLING FFMPEG ##################################################
|
25 |
+
RUN apt-get update ; apt-get install -y git build-essential gcc make yasm autoconf automake cmake libtool checkinstall libmp3lame-dev pkg-config libunwind-dev zlib1g-dev libssl-dev
|
26 |
+
|
27 |
+
RUN apt-get update \
|
28 |
+
&& apt-get clean \
|
29 |
+
&& apt-get install -y --no-install-recommends libc6-dev libgdiplus wget software-properties-common
|
30 |
+
|
31 |
+
#RUN RUN apt-add-repository ppa:git-core/ppa && apt-get update && apt-get install -y git
|
32 |
+
|
33 |
+
RUN wget https://www.ffmpeg.org/releases/ffmpeg-4.0.2.tar.gz
|
34 |
+
RUN tar -xzf ffmpeg-4.0.2.tar.gz; rm -r ffmpeg-4.0.2.tar.gz
|
35 |
+
RUN cd ./ffmpeg-4.0.2; ./configure --enable-gpl --enable-libmp3lame --enable-decoder=mjpeg,png --enable-encoder=png --enable-openssl --enable-nonfree
|
36 |
+
|
37 |
+
|
38 |
+
RUN cd ./ffmpeg-4.0.2; make
|
39 |
+
RUN cd ./ffmpeg-4.0.2; make install
|
40 |
+
######################################################################################################################
|
41 |
+
|
42 |
RUN echo "docker start"\
|
43 |
&& whoami \
|
44 |
&& which python \
|