daquanzhou commited on
Commit
2ffeae4
β€’
1 Parent(s): 62f9a29

update Dockerfile

Browse files
Files changed (2) hide show
  1. Dockerfile +1 -1
  2. 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
- sdk: gradio
5
- sdk_version: 4.18.0
6
- python_version: 3.9
7
- app_file: main.py
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