File size: 435 Bytes
f14242b
81a0312
2dde67d
a8c37b4
 
 
a029db6
81a0312
f14242b
 
 
81a0312
2dde67d
 
a8c37b4
f14242b
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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"]