File size: 715 Bytes
d40b23a
 
 
 
 
 
 
a5f74e9
d40b23a
 
d44913a
 
f454b51
d44913a
f454b51
d40b23a
 
a5f74e9
1413579
7cf3b8e
 
6689a0b
d40b23a
a5f74e9
1413579
a5f74e9
d40b23a
a5f74e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
FROM python:3.11-slim

ENV PYTHONDONTWRITEBYTECODE=1 \
    PYTHONUNBUFFERED=1 \
    PIP_DISABLE_PIP_VERSION_CHECK=on \
    PIP_NO_CACHE_DIR=on

# BLAS/LAPACK(Prophetを後で入れるなら十分)
RUN apt-get update && apt-get install -y --no-install-recommends \
    build-essential \
    libopenblas-dev \
    liblapack-dev \
    libgomp1 \
    git \
  && rm -rf /var/lib/apt/lists/*

WORKDIR /workspace

COPY requirements.txt ./requirements.txt
RUN pip install --upgrade pip \
 && pip install --no-cache-dir -r requirements.txt \
 && python -c "import gradio; print('gradio', gradio.__version__)"

# 以降の全ファイルをコピー(ui.py / app/ など)
COPY . .

EXPOSE 7860
CMD ["python", "ui.py"]