Create Dockerfile
Browse files- Dockerfile +17 -0
Dockerfile
ADDED
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10-slim
|
2 |
+
|
3 |
+
# Install basic tools
|
4 |
+
RUN apt-get update && apt-get install -y git && apt-get clean
|
5 |
+
|
6 |
+
# Install Jupyter
|
7 |
+
RUN pip install --upgrade pip
|
8 |
+
RUN pip install jupyterlab transformers datasets scikit-learn torch pandas numpy matplotlib seaborn
|
9 |
+
|
10 |
+
# Buat direktori kerja
|
11 |
+
WORKDIR /workspace
|
12 |
+
|
13 |
+
# Salin semua file ke container
|
14 |
+
COPY . /workspace
|
15 |
+
|
16 |
+
# Jalankan Jupyter saat container di-start
|
17 |
+
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''", "--NotebookApp.password=''", "--no-browser", "--NotebookApp.allow_origin='*'"]
|