AI_Summerization / Dockerfile
ntnmmm's picture
Update Dockerfile
5446c8b verified
raw
history blame contribute delete
468 Bytes
FROM --platform=linux/amd64 python:3.10-slim
WORKDIR /app/src
# Nên nâng pip
RUN pip install --upgrade pip
# Cài đặt dependencies trước để tận dụng cache
COPY requirements.txt ./
RUN pip install -r requirements.txt
# Copy toàn bộ mã nguồn sau khi đã cài thư viện xong
COPY . .
# Mở cổng ứng dụng
EXPOSE 5002
# Chạy ứng dụng Streamlit
CMD ["streamlit", "run", "app.py", "--server.port=5002", "--server.address=0.0.0.0"]