Mbonea commited on
Commit
a771143
1 Parent(s): fe58d2b
Files changed (1) hide show
  1. Dockerfile +4 -1
Dockerfile CHANGED
@@ -11,7 +11,10 @@ COPY requirements.txt .
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Copy the application code
14
- COPY . /srv
 
 
 
15
 
16
  # Command to run the application
17
  CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 & celery -A App.Worker.celery worker -c 8 --loglevel=info
 
11
  RUN pip install --no-cache-dir -r requirements.txt
12
 
13
  # Copy the application code
14
+ RUN useradd -m -u 1000 user
15
+ USER user
16
+
17
+ COPY --chown=user . /srv
18
 
19
  # Command to run the application
20
  CMD uvicorn App.app:app --host 0.0.0.0 --port 7860 & celery -A App.Worker.celery worker -c 8 --loglevel=info