rishab1090 commited on
Commit
cc0fed1
·
verified ·
1 Parent(s): 38f91fc

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -0
Dockerfile CHANGED
@@ -8,5 +8,11 @@ RUN pip install --no-cache-dir --upgrade pip \
8
  && pip install --no-cache-dir -r requirements.txt
9
 
10
  COPY . .
 
 
 
 
 
 
11
 
12
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
8
  && pip install --no-cache-dir -r requirements.txt
9
 
10
  COPY . .
11
+ # Add this after copying files
12
+ RUN chmod -R 755 /app
13
+ # Add a user
14
+ RUN adduser --disabled-password appuser
15
+ USER appuser
16
+
17
 
18
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]