Nive-AI-Lite / Dockerfile
AInive's picture
Create Dockerfile
f97076c verified
Raw History Blame Contribute Delete
419 Bytes
# Chỉ định phiên bản Python
FROM python:3.10
WORKDIR /code
# Cài đặt thư viện phụ thuộc
COPY ./requirements.txt /code/requirements.txt
RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
# Sao chép toàn bộ mã nguồn vào Container
COPY . .
# Khởi chạy ứng dụng (Chỉ định app.py làm file chính)
CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]