Update Dockerfile
Browse files- Dockerfile +12 -5
Dockerfile
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
# Use the official Jupyter Docker image
|
2 |
FROM jupyter/base-notebook:latest
|
3 |
|
4 |
-
# Install additional packages
|
5 |
RUN pip install --no-cache-dir \
|
|
|
6 |
torch \
|
7 |
tensorflow \
|
8 |
transformers \
|
@@ -12,8 +13,14 @@ RUN pip install --no-cache-dir \
|
|
12 |
scikit-learn \
|
13 |
pandas
|
14 |
|
15 |
-
#
|
16 |
-
|
17 |
|
18 |
-
#
|
19 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 \
|
|
|
13 |
scikit-learn \
|
14 |
pandas
|
15 |
|
16 |
+
# Create a directory for the webpage
|
17 |
+
RUN mkdir -p /srv/jupyterlab
|
18 |
|
19 |
+
# Add the HTML file to the container
|
20 |
+
COPY index.html /srv/jupyterlab/index.html
|
21 |
+
|
22 |
+
# Expose the ports Jupyter Lab and web server will run on
|
23 |
+
EXPOSE 8888 8000
|
24 |
+
|
25 |
+
# Start both Jupyter Lab and the web server
|
26 |
+
CMD ["sh", "-c", "jupyter lab --ip=0.0.0.0 --port=8888 --no-browser --allow-root --NotebookApp.token='' & cd /srv/jupyterlab && python3 -m http.server 8000"]
|