Update Dockerfile
Browse files- Dockerfile +5 -1
Dockerfile
CHANGED
@@ -4,9 +4,13 @@ FROM ubuntu:22.04
|
|
4 |
ENV TZ=Asia/Kolkata
|
5 |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
6 |
|
|
|
|
|
|
|
|
|
7 |
# Install system dependencies
|
8 |
RUN apt-get update && apt-get install -y \
|
9 |
-
python3.
|
10 |
python3-pip \
|
11 |
tesseract-ocr \
|
12 |
libtesseract-dev \
|
|
|
4 |
ENV TZ=Asia/Kolkata
|
5 |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
6 |
|
7 |
+
# Set Hugging Face cache directory
|
8 |
+
ENV TRANSFORMERS_CACHE=/app/cache
|
9 |
+
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
|
10 |
+
|
11 |
# Install system dependencies
|
12 |
RUN apt-get update && apt-get install -y \
|
13 |
+
python3.10 \
|
14 |
python3-pip \
|
15 |
tesseract-ocr \
|
16 |
libtesseract-dev \
|