RAG / backend /Dockerfile
JenishMakwana's picture
clean: remove obsolete docker dependencies and empty temporary scripts
816db5b
Raw
History Blame Contribute Delete
852 Bytes
FROM python:3.12-slim
WORKDIR /app
# System dependencies: PyAudio, psycopg2, build tools, ffmpeg (for webm audio)
RUN apt-get update && apt-get install -y --no-install-recommends \
build-essential \
portaudio19-dev \
libpq-dev \
libpq5 \
curl \
pkg-config \
cmake \
ffmpeg \
&& rm -rf /var/lib/apt/lists/*
# requirements.txt is copied from the project root (build context is root)
COPY requirements.txt .
RUN pip install --upgrade pip setuptools wheel && \
pip install --no-cache-dir --no-build-isolation pyaudio && \
pip install --no-cache-dir -r requirements.txt
# Copy backend application source
COPY backend/app ./app
# Persistent data directories
RUN mkdir -p /app/app/data /app/qdrant_storage
EXPOSE 8001
EXPOSE 7860
CMD ["sh", "-c", "uvicorn app.main:app --host 0.0.0.0 --port ${PORT:-8001}"]