Spaces:
Build error
Build error
big-thousand
commited on
Commit
•
493031b
1
Parent(s):
f54bc5d
add more
Browse files- Dockerfile +19 -0
- README.md +2 -3
Dockerfile
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
FROM python:3.8
|
2 |
+
|
3 |
+
RUN useradd -m -u 1000 user
|
4 |
+
|
5 |
+
USER user
|
6 |
+
|
7 |
+
ENV HOME=/home/user \
|
8 |
+
PATH=/home/user/.local/bin:$PATH
|
9 |
+
|
10 |
+
COPY requirements.txt requirements.txt
|
11 |
+
RUN pip3 install --no-cache-dir -r requirements.txt
|
12 |
+
|
13 |
+
WORKDIR $HOME/app
|
14 |
+
|
15 |
+
COPY --chown=user . $HOME/app
|
16 |
+
|
17 |
+
EXPOSE 7860
|
18 |
+
|
19 |
+
CMD ["sh", "-c", "python3 server.py --notebook"]
|
README.md
CHANGED
@@ -3,8 +3,7 @@ title: dolo
|
|
3 |
emoji: 🏃
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
-
sdk:
|
7 |
-
|
8 |
-
app_file: server.py
|
9 |
pinned: false
|
10 |
---
|
|
|
3 |
emoji: 🏃
|
4 |
colorFrom: yellow
|
5 |
colorTo: purple
|
6 |
+
sdk: docker
|
7 |
+
app_port: 7860
|
|
|
8 |
pinned: false
|
9 |
---
|