Spaces:
Sleeping
Sleeping
File size: 543 Bytes
5481095 d56d962 5481095 8b0671e 5481095 cdf55ce 5481095 ca8074c 5481095 ca8074c 8b0671e 5481095 ca8074c 5481095 8b0671e 5481095 8b0671e 5481095 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 |
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"]
|