test-api / Dockerfile
phamluan's picture
update
30b281b
raw
history blame contribute delete
382 Bytes
FROM python:3.9-slim
# Cài các thư viện cần thiết
RUN pip install --no-cache-dir fastapi uvicorn transformers pydantic torch
# Copy toàn bộ thư mục app
COPY app /app
# Làm việc trong thư mục app
WORKDIR /app
# Expose cổng đúng (quan trọng với HF Space)
EXPOSE 7860
# Chạy FastAPI
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]