ocrqa-demo / Dockerfile
maslionok
fix
aaec47f
raw
history blame contribute delete
545 Bytes
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"]