asv7j commited on
Commit
99d44ee
·
verified ·
1 Parent(s): b11e5dc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +20 -10
Dockerfile CHANGED
@@ -1,10 +1,20 @@
1
- FROM python:3.9
2
-
3
- WORKDIR /app
4
-
5
- COPY requirements.txt .
6
- RUN pip install -r requirements.txt
7
-
8
- COPY . .
9
-
10
- CMD ["python", "app.py"]
 
 
 
 
 
 
 
 
 
 
 
1
+ # Use the official Jupyter Docker image
2
+ FROM jupyter/base-notebook:latest
3
+
4
+ # Install Jupyter Lab and additional packages
5
+ RUN pip install --no-cache-dir \
6
+ jupyterlab \
7
+ torch \
8
+ tensorflow \
9
+ transformers \
10
+ datasets \
11
+ matplotlib \
12
+ seaborn \
13
+ scikit-learn \
14
+ pandas
15
+
16
+ # Expose the port Jupyter Lab will run on
17
+ EXPOSE 8888
18
+
19
+ # Start Jupyter Lab
20
+ CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8888", "--no-browser", "--allow-root", "--NotebookApp.token=''"]