PINE-AI-Amdocs / Dockerfile
maitrang04's picture
Update Dockerfile
fb4379c verified
raw
history blame contribute delete
509 Bytes
# Sử dụng Python slim nhẹ
FROM python:3.11-slim
# Thiết lập working directory
WORKDIR /app
# Copy toàn bộ code
COPY backend ./backend
COPY frontend ./frontend
COPY requirements.txt ./requirements.txt
# Cập nhật pip và cài dependencies
RUN pip install --upgrade pip \
&& pip install --no-cache-dir -r requirements.txt
# Hugging Face yêu cầu app lắng nghe ở 0.0.0.0
EXPOSE 7860
# Start FastAPI app
CMD ["uvicorn", "backend.ai.main:app", "--host", "0.0.0.0", "--port", "7860"]