Omkar008 commited on
Commit
547a966
1 Parent(s): 1e7c468

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -0
Dockerfile CHANGED
@@ -5,3 +5,14 @@ WORKDIR /app
5
  COPY . /app
6
 
7
  RUN pip install -r requirements.txt
 
 
 
 
 
 
 
 
 
 
 
 
5
  COPY . /app
6
 
7
  RUN pip install -r requirements.txt
8
+
9
+ RUN useradd -m -u 1000 user
10
+
11
+ USER user
12
+
13
+ # Copy the rest of the application code into the container at /app
14
+ COPY --chown=user . /app/
15
+
16
+
17
+ # Command to run your application
18
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]