pauri32 commited on
Commit
00d6e67
1 Parent(s): 58e8f97

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -0
Dockerfile CHANGED
@@ -6,5 +6,10 @@ RUN pip install --no-cache-dir --upgrade -r /app/requirements.txt
6
 
7
  COPY ./app /app
8
 
 
 
 
 
 
9
  # Start the FastAPI app on port 7860, the default port expected by Spaces
10
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]
 
6
 
7
  COPY ./app /app
8
 
9
+ RUN useradd -m -u 1000 user
10
+ USER user
11
+ ENV HOME=/home/user \
12
+ PATH=/home/user/.local/bin:$PATH
13
+
14
  # Start the FastAPI app on port 7860, the default port expected by Spaces
15
  CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]