rag_milvus / Dockerfile
januarevan's picture
init
ca8074c
raw
history blame contribute delete
543 Bytes
FROM python:3.10.8
WORKDIR /app
COPY requirements.txt /app/requirements.txt
RUN mkdir -p /app/cache /app/milvus_data && chmod -R 777 /app/cache /app/milvus_data
RUN pip install --no-cache-dir --upgrade -r requirements.txt
RUN useradd -m -u 1000 user
USER user
ENV HF_HOME=/app/cache \
HF_MODULES_CACHE=/app/cache/hf_modules \
MILVUS_DATA_DIR=/app/milvus_data \
HF_WORKER_COUNT=1
COPY . /app
# Expose port for Uvicorn
EXPOSE 7860
# Command to run Uvicorn
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]