Spaces:
Running
Running
Update Dockerfile
Browse files- Dockerfile +5 -4
Dockerfile
CHANGED
@@ -4,8 +4,8 @@ FROM python:3.12-slim
|
|
4 |
# Install dependencies and clean up in a single layer
|
5 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
6 |
gcc libffi-dev curl ca-certificates python3-dev pkg-config \
|
7 |
-
libcairo2-dev libpango1.0-dev ffmpeg fontconfig \
|
8 |
-
fonts-dejavu texlive-full \
|
9 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
# Create a non-root user
|
@@ -46,10 +46,11 @@ ENV PYTHONPATH=/app \
|
|
46 |
# Create necessary directories with proper permissions
|
47 |
RUN mkdir -p /app/generated_videos /home/user/.cache/huggingface \
|
48 |
/home/user/.cache/fontconfig /home/user/texmf-var \
|
49 |
-
&& chown -R user:user /app /home/user
|
|
|
50 |
|
51 |
# Verify latex installation
|
52 |
-
RUN which latex && ls -la $(which latex)
|
53 |
|
54 |
# Switch to non-root user
|
55 |
USER user
|
|
|
4 |
# Install dependencies and clean up in a single layer
|
5 |
RUN apt-get update && apt-get install -y --no-install-recommends \
|
6 |
gcc libffi-dev curl ca-certificates python3-dev pkg-config \
|
7 |
+
libcairo2-dev libpango1.0-dev ffmpeg wget perl fontconfig \
|
8 |
+
fonts-dejavu texlive-full texlive-binaries \
|
9 |
&& apt-get clean && rm -rf /var/lib/apt/lists/*
|
10 |
|
11 |
# Create a non-root user
|
|
|
46 |
# Create necessary directories with proper permissions
|
47 |
RUN mkdir -p /app/generated_videos /home/user/.cache/huggingface \
|
48 |
/home/user/.cache/fontconfig /home/user/texmf-var \
|
49 |
+
&& chown -R user:user /app /home/user \
|
50 |
+
&& chmod +x $(which dvisvgm)
|
51 |
|
52 |
# Verify latex installation
|
53 |
+
RUN which latex && ls -la $(which latex) && which dvisvgm && ls -la $(which dvisvgm)
|
54 |
|
55 |
# Switch to non-root user
|
56 |
USER user
|