rag_milvus / Dockerfile
januarevan's picture
init
5481095
raw
history blame
616 Bytes
FROM python:3.10.8
WORKDIR /app
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
RUN mkdir -p /app/cache && chmod -R 777 /app/cache
RUN mkdir -p /app/milvus_data && chmod -R 777 /app/milvus_data
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
ENV HF_HOME=/app/cache
ENV HF_MODULES_CACHE=/app/cache/hf_modules
ENV MILVUS_DATA_DIR=/app/milvus_data
ENV HF_WORKER_COUNT=1
WORKDIR $HOME/app
COPY --chown=user . $HOME/app
COPY . .
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]