deploy / DockerFile
thanhdo062305's picture
init project
ab422e4
raw
history blame contribute delete
368 Bytes
FROM python:3.11-slim
# Set workdir
WORKDIR /app
# Copy requirements trước để cache
COPY requirements.txt .
# Cài dependencies
RUN pip install --no-cache-dir -r requirements.txt
# Copy toàn bộ code
COPY . .
# Expose port (HuggingFace cần lắng nghe ở $PORT)
ENV PORT=7860
# Run app với gunicorn
CMD ["gunicorn", "-b", "0.0.0.0:7860", "app:app"]