Yusin commited on
Commit
f7e0a21
1 Parent(s): 76d71ba

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +1 -5
Dockerfile CHANGED
@@ -5,16 +5,12 @@ FROM ultrafunk/undetected-chromedriver:latest
5
 
6
  WORKDIR /code
7
 
8
- RUN addgroup -S appgroup && adduser -S yusin -G appgroup
9
-
10
  COPY ./requirements.txt /code/requirements.txt
11
 
12
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
13
 
14
  COPY . .
15
 
16
- RUN chown yusin:appgroup /code/main.py
17
-
18
- USER yusin
19
 
20
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
5
 
6
  WORKDIR /code
7
 
 
 
8
  COPY ./requirements.txt /code/requirements.txt
9
 
10
  RUN pip install --no-cache-dir --upgrade -r /code/requirements.txt
11
 
12
  COPY . .
13
 
14
+ USER root
 
 
15
 
16
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]