llama / Dockerfile
quan1998's picture
Update Dockerfile
ea67a13 verified
raw
history blame contribute delete
378 Bytes
# Dùng Python nhỏ gọn
FROM python:3.11
# Tạo thư mục làm việc
WORKDIR /app
# Copy và cài dependencies
COPY requirements.txt .
RUN pip install --no-cache-dir --upgrade -r requirements.txt
# Copy toàn bộ code vào container
COPY . .
# Chạy FastAPI trên cổng 7860 (HuggingFace yêu cầu)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]