UB_VSA / Dockerfile
AUMREDKA's picture
Update Dockerfile
0153225 verified
raw
history blame contribute delete
623 Bytes
FROM python:3.9-slim
WORKDIR /app
COPY requirements.txt ./
RUN pip install --no-cache-dir -r requirements.txt
RUN echo "Installed required Python packages."
ENV HF_HOME=/app/.cache/huggingface
ENV TRANSFORMERS_CACHE=/app/.cache/huggingface/transformers
ENV SENTENCE_TRANSFORMERS_HOME=/app/.cache/sentence_transformers
RUN mkdir -p /app/.cache && chmod -R 777 /app/.cache
COPY buffalo_rag/ /app/buffalo_rag
COPY main.py /app/main.py
COPY data/ /app/data
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
EXPOSE 7860
EXPOSE 8000
RUN chmod -R 777 /app
RUN chmod -R 777 /app/data
CMD ["/bin/bash", "/app/start.sh"]