Spaces:
Running
on
T4
Running
on
T4
temp: install libjpeg62-turbo and libpng-1.5.30 required by fairseq2 nightly
Browse files- Dockerfile +9 -3
Dockerfile
CHANGED
@@ -51,6 +51,15 @@ RUN apt-get update && \
|
|
51 |
apt-get clean && \
|
52 |
rm -rf /var/lib/apt/lists/*
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
RUN useradd -m -u 1000 user
|
55 |
USER user
|
56 |
ENV HOME=/home/user \
|
@@ -78,10 +87,7 @@ RUN --mount=type=secret,id=HF_TOKEN,mode=0444,required=false \
|
|
78 |
huggingface-cli download meta-private/SeamlessExpressive pretssel_melhifigan_wm-final.pt --local-dir ./models/Seamless/ || echo "HF_TOKEN error" && \
|
79 |
ln -s $(readlink -f models/Seamless/pretssel_melhifigan_wm-final.pt) models/Seamless/pretssel_melhifigan_wm.pt || true;
|
80 |
|
81 |
-
USER root
|
82 |
-
RUN ln -s /usr/lib/x86_64-linux-gnu/libsox.so.3 /usr/lib/x86_64-linux-gnu/libsox.so
|
83 |
USER user
|
84 |
RUN ["chmod", "+x", "./run_docker.sh"]
|
85 |
CMD ./run_docker.sh
|
86 |
|
87 |
-
|
|
|
51 |
apt-get clean && \
|
52 |
rm -rf /var/lib/apt/lists/*
|
53 |
|
54 |
+
USER root
|
55 |
+
RUN ln -s /usr/lib/x86_64-linux-gnu/libsox.so.3 /usr/lib/x86_64-linux-gnu/libsox.so
|
56 |
+
# install older versions libjpeg62-turbo and libpng15
|
57 |
+
RUN wget http://ftp.us.debian.org/debian/pool/main/libj/libjpeg-turbo/libjpeg62-turbo_2.1.5-2_amd64.deb && \
|
58 |
+
dpkg -i libjpeg62-turbo_2.1.5-2_amd64.deb && \
|
59 |
+
rm libjpeg62-turbo_2.1.5-2_amd64.deb
|
60 |
+
RUN wget https://master.dl.sourceforge.net/project/libpng/libpng15/1.5.30/libpng-1.5.30.tar.gz && \
|
61 |
+
tar -xvf libpng-1.5.30.tar.gz && cd libpng-1.5.30 && ./configure && make && make install && cd .. && rm -rf libpng-1.5.30.tar.gz libpng-1.5.30
|
62 |
+
|
63 |
RUN useradd -m -u 1000 user
|
64 |
USER user
|
65 |
ENV HOME=/home/user \
|
|
|
87 |
huggingface-cli download meta-private/SeamlessExpressive pretssel_melhifigan_wm-final.pt --local-dir ./models/Seamless/ || echo "HF_TOKEN error" && \
|
88 |
ln -s $(readlink -f models/Seamless/pretssel_melhifigan_wm-final.pt) models/Seamless/pretssel_melhifigan_wm.pt || true;
|
89 |
|
|
|
|
|
90 |
USER user
|
91 |
RUN ["chmod", "+x", "./run_docker.sh"]
|
92 |
CMD ./run_docker.sh
|
93 |
|
|