Ocean-Meets-Forest / Dockerfile
jung-ming's picture
Update Dockerfile
2dde67d verified
raw
history blame contribute delete
435 Bytes
FROM python:3.10-slim
# 安裝中文字型
RUN apt-get update && apt-get install -y --no-install-recommends \
fonts-noto-cjk \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /app
COPY requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY . .
# 避免 matplotlib 權限錯誤
ENV MPLCONFIGDIR=/tmp/matplotlib_cache
EXPOSE 8501
CMD ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]