Update Dockerfile
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
@@ -36,23 +36,24 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
|
|
36 |
|
37 |
# Install TinyTeX with minimal packages for HF Spaces
|
38 |
RUN wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh \
|
39 |
-
&&
|
40 |
-
&& tlmgr install \
|
41 |
amsmath babel-english cbfonts-fd cm-super count1to ctex \
|
42 |
doublestroke dvisvgm everysel fontspec frcursive fundus-calligra \
|
43 |
gnu-freefont jknapltx latex-bin mathastext microtype multitoc \
|
44 |
physics preview prelim2e ragged2e relsize rsfs setspace \
|
45 |
standalone tipa wasy wasysym xcolor xetex xkeyval \
|
46 |
-
&& rm -rf ~/.TinyTeX/texmf-var/web2c/tlmgr
|
47 |
-
&&
|
|
|
|
|
48 |
|
49 |
# Add TinyTeX to PATH
|
50 |
ENV PATH="/root/.TinyTeX/bin/x86_64-linux:$PATH"
|
51 |
|
52 |
# Copy requirements and install Python dependencies
|
53 |
COPY requirements.txt .
|
54 |
-
RUN pip install --no-cache-dir --prefix=/install \
|
55 |
-
torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu \
|
56 |
&& pip install --no-cache-dir --prefix=/install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu \
|
57 |
&& python -c "import gradio; print(f'Gradio version: {gradio.__version__}')" \
|
58 |
&& find /install -name "*.pyc" -delete \
|
|
|
36 |
|
37 |
# Install TinyTeX with minimal packages for HF Spaces
|
38 |
RUN wget -qO- "https://yihui.org/tinytex/install-bin-unix.sh" | sh \
|
39 |
+
&& ~/.TinyTeX/bin/*/tlmgr path add \
|
40 |
+
&& ~/.TinyTeX/bin/*/tlmgr install \
|
41 |
amsmath babel-english cbfonts-fd cm-super count1to ctex \
|
42 |
doublestroke dvisvgm everysel fontspec frcursive fundus-calligra \
|
43 |
gnu-freefont jknapltx latex-bin mathastext microtype multitoc \
|
44 |
physics preview prelim2e ragged2e relsize rsfs setspace \
|
45 |
standalone tipa wasy wasysym xcolor xetex xkeyval \
|
46 |
+
&& rm -rf ~/.TinyTeX/texmf-var/web2c/tlmgr.log* \
|
47 |
+
&& rm -rf ~/.TinyTeX/texmf-var/web2c/tlmgr-commands.log* \
|
48 |
+
&& find ~/.TinyTeX -name "*.log" -delete \
|
49 |
+
&& find ~/.TinyTeX -name "*.aux" -delete
|
50 |
|
51 |
# Add TinyTeX to PATH
|
52 |
ENV PATH="/root/.TinyTeX/bin/x86_64-linux:$PATH"
|
53 |
|
54 |
# Copy requirements and install Python dependencies
|
55 |
COPY requirements.txt .
|
56 |
+
RUN pip install --no-cache-dir --prefix=/install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu \
|
|
|
57 |
&& pip install --no-cache-dir --prefix=/install -r requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu \
|
58 |
&& python -c "import gradio; print(f'Gradio version: {gradio.__version__}')" \
|
59 |
&& find /install -name "*.pyc" -delete \
|