uas_nlp / Dockerfile
ElizabethSrgh's picture
Create Dockerfile
83c3e6a verified
raw
history blame
554 Bytes
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='*'"]