File size: 545 Bytes
3831088
 
aaec47f
3831088
aaec47f
1ee396e
aaec47f
 
 
 
 
1ee396e
aaec47f
 
1ee396e
aaec47f
 
 
 
 
 
 
 
 
1ee396e
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
FROM python:3.11-slim

ENV XDG_CACHE_HOME=/tmp/.cache

WORKDIR /app

# Install dependencies
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    curl \
    && rm -rf /var/lib/apt/lists/*

# Create cache directory and set permissions
RUN mkdir -p /tmp/.cache/huggingface && chmod -R 777 /tmp/.cache

# Copy app files
COPY . .

# Upgrade pip and install packages
RUN pip install --upgrade pip
RUN pip install "impresso_pipelines[ocrqa]==0.4.6.6"
RUN pip install gradio

EXPOSE 7860

CMD ["python", "app.py"]