embed / Dockerfile
hoagxxll's picture
Upload FastAPI embedding app
72d92e7
raw
history blame contribute delete
390 Bytes
FROM python:3.10-slim
# Tạo thư mục làm việc
WORKDIR /app
# Copy tất cả file vào container
COPY . /app
RUN mkdir -p /app/cache
RUN mkdir -p /.cache
RUN chmod -R 777 /.cache
# Cài thư viện Python
RUN pip install --no-cache-dir -r requirements.txt
# Mở port cho API
EXPOSE 7860
# Chạy server FastAPI
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]