Spaces:
Running
Running
daquanzhou
commited on
Commit
β’
2ffeae4
1
Parent(s):
62f9a29
update Dockerfile
Browse files- Dockerfile +1 -1
- README.md +4 -5
Dockerfile
CHANGED
@@ -44,7 +44,7 @@ RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
|
|
44 |
WORKDIR $HOME/app
|
45 |
|
46 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
47 |
-
COPY .
|
48 |
|
49 |
# Checkpoints
|
50 |
CMD ["python", "main.py", "--listen", "0.0.0.0", "--cpu", "--port", "7860", "--output-directory", "${USE_PERSISTENT_DATA:+/data/}"]
|
|
|
44 |
WORKDIR $HOME/app
|
45 |
|
46 |
# Copy the current directory contents into the container at $HOME/app setting the owner to the user
|
47 |
+
COPY --chown=user . $HOME/app
|
48 |
|
49 |
# Checkpoints
|
50 |
CMD ["python", "main.py", "--listen", "0.0.0.0", "--cpu", "--port", "7860", "--output-directory", "${USE_PERSISTENT_DATA:+/data/}"]
|
README.md
CHANGED
@@ -1,11 +1,10 @@
|
|
1 |
---
|
2 |
title: Magic-Me
|
3 |
emoji: π
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
pinned: false
|
9 |
---
|
10 |
|
11 |
|
|
|
1 |
---
|
2 |
title: Magic-Me
|
3 |
emoji: π
|
4 |
+
colorFrom: purple
|
5 |
+
colorTo: gray
|
6 |
+
sdk: docker
|
7 |
+
app_port: 7860
|
|
|
8 |
---
|
9 |
|
10 |
|