Spaces:
Build error
Build error
File size: 468 Bytes
d3fc93d cb68e0e 5446c8b cb68e0e 1b08f48 cb68e0e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
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"]
|