cs-ai-sakura-dev / Dockerfile
lifedebugger's picture
Deploy files from GitHub repository
9dd91a4
FROM python:3.13
RUN useradd -m -u 1001 appuser
WORKDIR /rag_be
ENV HF_HOME=/tmp/.cache/huggingface
ENV TRANSFORMERS_CACHE=/tmp/.cache/transformers
ENV TORCH_HOME=/tmp/.cache/torch
ENV XDG_CACHE_HOME=/tmp/.cache
ENV TMPDIR=/tmp
ENV WHISPER_CACHE_DIR=/tmp/.cache/whisper
COPY requirements.txt ./
RUN pip install --no-cache-dir --upgrade -r requirements.txt
COPY --chown=appuser:appuser . /rag_be
RUN mkdir -p /tmp/.cache \
/tmp/.cache/whisper \
/tmp/.cache/huggingface \
/tmp/.cache/transformers \
/tmp/.cache/torch \
/rag_be/vectorstore \
/rag_be/app/vectorstore \
/rag_be/documents && \
chmod -R 777 /tmp/.cache /rag_be/app /rag_be/vectorstore /rag_be/documents
RUN apt-get update && apt-get install -y ffmpeg && apt-get clean
USER appuser
EXPOSE 8000
CMD ["python", "main.py --mode rtc-ui --port 7860"]