Spaces:
Sleeping
Sleeping
Update Dockerfile
Browse files- Dockerfile +4 -0
Dockerfile
CHANGED
|
@@ -6,12 +6,16 @@ RUN apt-get update && apt-get install -y \
|
|
| 6 |
libglib2.0-0 \
|
| 7 |
ffmpeg \
|
| 8 |
tesseract-ocr \
|
|
|
|
| 9 |
&& rm -rf /var/lib/apt/lists/*
|
| 10 |
|
| 11 |
# Set environment variables to avoid permission issues
|
| 12 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 13 |
ENV YOLO_CONFIG_DIR=/tmp/Ultralytics
|
|
|
|
|
|
|
| 14 |
|
|
|
|
| 15 |
# Set working directory
|
| 16 |
WORKDIR /app
|
| 17 |
|
|
|
|
| 6 |
libglib2.0-0 \
|
| 7 |
ffmpeg \
|
| 8 |
tesseract-ocr \
|
| 9 |
+
poppler-utils \
|
| 10 |
&& rm -rf /var/lib/apt/lists/*
|
| 11 |
|
| 12 |
# Set environment variables to avoid permission issues
|
| 13 |
ENV MPLCONFIGDIR=/tmp/matplotlib
|
| 14 |
ENV YOLO_CONFIG_DIR=/tmp/Ultralytics
|
| 15 |
+
ENV XDG_CACHE_HOME=/tmp
|
| 16 |
+
ENV FONTCONFIG_PATH=/tmp
|
| 17 |
|
| 18 |
+
RUN mkdir -p /tmp/matplotlib /tmp/ultralytics /tmp/fontconfig
|
| 19 |
# Set working directory
|
| 20 |
WORKDIR /app
|
| 21 |
|