chinese_learning_v2 / Dockerfile
GphaHoa's picture
Update Dockerfile
72a8e00 verified
raw
history blame contribute delete
481 Bytes
FROM python:3.11-slim
WORKDIR /code
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# 6. Hugging Face Spaces chạy mặc định ở port 7860
# Gunicorn sẽ lắng nghe ở port này
ENV PORT=7860
# 7. Lệnh để chạy ứng dụng
# Cấu trúc: gunicorn -b 0.0.0.0:7860 tên_file_chạy:biến_flask
# Nếu file của bạn là run.py và biến Flask là app thì dùng "run:app"
CMD ["gunicorn", "-b", "0.0.0.0:7860", "run:app"]