teacher-ai-api / Dockerfile
huyhoang04's picture
Update Dockerfile
4b5f59a verified
raw
history blame contribute delete
299 Bytes
FROM python:3.12-slim
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# Sử dụng port 7860 (port mặc định của Hugging Face)
ENV PORT=7860
EXPOSE $PORT
# Chạy ứng dụng
CMD python -m uvicorn app.main:app --host 0.0.0.0 --port $PORT