Spaces:
Running
Running
Create Dockerfile
Browse files- Dockerfile +19 -0
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Use the latest Ubuntu image
|
2 |
+
FROM ubuntu:latest
|
3 |
+
|
4 |
+
# Update and install required packages
|
5 |
+
RUN apt-get update && apt-get install -y \
|
6 |
+
python3 \
|
7 |
+
python3-pip
|
8 |
+
|
9 |
+
# Set the working directory
|
10 |
+
WORKDIR /app
|
11 |
+
|
12 |
+
# Install JupyterLab
|
13 |
+
RUN pip3 install jupyterlab
|
14 |
+
|
15 |
+
# Expose port 8080
|
16 |
+
EXPOSE 8080
|
17 |
+
|
18 |
+
# Start JupyterLab on port 8080 without authentication
|
19 |
+
CMD ["jupyter", "lab", "--ip=0.0.0.0", "--port=8080", "--no-browser", "--allow-root", "--NotebookApp.token=''"]
|