Darshan commited on
Commit
11b43df
·
1 Parent(s): 1659ef3

permissions issue fix

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -0
Dockerfile CHANGED
@@ -6,9 +6,12 @@ COPY . .
6
 
7
  # Set the working directory to /
8
  WORKDIR /
 
9
 
10
  # Install requirements.txt
11
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
12
 
 
 
13
  # Start the FastAPI app on port 7860, the default port expected by Spaces
14
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]
 
6
 
7
  # Set the working directory to /
8
  WORKDIR /
9
+ VOLUME ["cache:/.cache"]
10
 
11
  # Install requirements.txt
12
  RUN pip install --no-cache-dir --upgrade -r /requirements.txt
13
 
14
+ USER 1000
15
+
16
  # Start the FastAPI app on port 7860, the default port expected by Spaces
17
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7860"]