vis-text-cluster / Dockerfile
patanopanda's picture
Create Dockerfile
428dc9e verified
Raw
History Blame Contribute Delete
477 Bytes
FROM python:3.10-slim
# コンパイル用ツールのインストール (UMAP等のために必須)
RUN apt-get update && apt-get install -y \
build-essential \
&& rm -rf /var/lib/apt/lists/*
# ユーザー設定
RUN useradd -m -u 1000 user
USER user
ENV HOME=/home/user \
PATH=/home/user/.local/bin:$PATH
WORKDIR $HOME/app
COPY --chown=user requirements.txt .
RUN pip install --no-cache-dir -r requirements.txt
COPY --chown=user . .
CMD ["python", "app.py"]