rag-app / Dockerfile
bhavinmatariya's picture
Upload 13 files
3506c42 verified
FROM python:3.11
ENV PYTHONDONTWRITEBYTECODE=1 \
PYTHONUNBUFFERED=1 \
DEBIAN_FRONTEND=noninteractive \
PIP_NO_CACHE_DIR=1 \
PIP_DISABLE_PIP_VERSION_CHECK=1
WORKDIR /app
RUN apt-get update && apt-get install -y \
poppler-utils libgl1 libglib2.0-0 \
libsm6 libxext6 libxrender-dev libgomp1 \
ffmpeg wget curl git \
&& apt-get clean && rm -rf /var/lib/apt/lists/*
COPY requirements.txt .
# Upgrade pip and install dependencies with options
RUN pip install --upgrade pip setuptools wheel && \
pip install --no-cache-dir --prefer-binary -r requirements.txt
COPY . .
EXPOSE 7860
CMD ["python", "app.py"]