zhengr commited on
Commit
0319cd8
·
verified ·
1 Parent(s): 0051950

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -1
Dockerfile CHANGED
@@ -6,6 +6,8 @@ RUN useradd -m -u 1000 user
6
  USER user
7
  ENV PATH="/home/user/.local/bin:$PATH"
8
 
 
 
9
  WORKDIR /app
10
 
11
  COPY --chown=user ./requirements.txt requirements.txt
@@ -14,6 +16,5 @@ RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
  COPY --chown=user . /app
15
  #CMD ["fastapi", "dev", "examples/api/main.py", "--host", "0.0.0.0", "--port", "7860"]
16
 
17
- RUN chmod -R 777 /app
18
 
19
  CMD ["python", "examples/web/webui.py", "--server_name", "0.0.0.0", "--server_port", "7860"]
 
6
  USER user
7
  ENV PATH="/home/user/.local/bin:$PATH"
8
 
9
+ RUN chmod -R 777 /app
10
+
11
  WORKDIR /app
12
 
13
  COPY --chown=user ./requirements.txt requirements.txt
 
16
  COPY --chown=user . /app
17
  #CMD ["fastapi", "dev", "examples/api/main.py", "--host", "0.0.0.0", "--port", "7860"]
18
 
 
19
 
20
  CMD ["python", "examples/web/webui.py", "--server_name", "0.0.0.0", "--server_port", "7860"]