FROM python:3.10-slim | |
# Install basic tools | |
RUN apt-get update && apt-get install -y git && apt-get clean | |
# Install Jupyter | |
RUN pip install --upgrade pip | |
RUN pip install jupyterlab transformers datasets scikit-learn torch pandas numpy matplotlib seaborn | |
# Buat direktori kerja | |
WORKDIR /workspace | |
# Salin semua file ke container | |
COPY . /workspace | |
# Jalankan Jupyter saat container di-start | |
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''", "--no-browser", "--NotebookApp.allow_origin='*'"] | |