Spaces:
Sleeping
Sleeping
Commit
·
a0a2b4f
0
Parent(s):
add: dockerfile, metadata, and requirements
Browse files- Dockerfile +21 -0
- README.md +8 -0
- requirements.txt +1 -0
Dockerfile
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.10
|
2 |
+
|
3 |
+
RUN useradd -ms /bin/bash ubuntu
|
4 |
+
|
5 |
+
USER ubuntu
|
6 |
+
|
7 |
+
WORKDIR /home/ubuntu/app
|
8 |
+
|
9 |
+
COPY . /home/ubuntu/app
|
10 |
+
|
11 |
+
RUN python3 -m pip install --upgrade pip
|
12 |
+
|
13 |
+
RUN pip3 install -r requirements.txt
|
14 |
+
|
15 |
+
RUN PATH="/home/ubuntu/.local/bin:$PATH"
|
16 |
+
|
17 |
+
RUN export PATH
|
18 |
+
|
19 |
+
ENTRYPOINT ["/home/ubuntu/.local/bin/jupyter"]
|
20 |
+
|
21 |
+
CMD ["lab", "--port", "7860", "--no-browser", "--ip", "0.0.0.0", "--NotebookApp.token", "123123", "--NotebookApp.notebook_dir", "/home/ubuntu/"]
|
README.md
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: Jupyter Lab
|
3 |
+
emoji: 🐳
|
4 |
+
colorFrom: green
|
5 |
+
colorTo: blue
|
6 |
+
sdk: docker
|
7 |
+
app_port: 7860
|
8 |
+
---
|
requirements.txt
ADDED
@@ -0,0 +1 @@
|
|
|
|
|
1 |
+
jupyterlab==4.3.4
|