favoredone commited on
Commit
4f68dd1
·
verified ·
1 Parent(s): f7e1ac1

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +9 -4
Dockerfile CHANGED
@@ -8,9 +8,14 @@ USER user
8
  ENV PATH="/home/user/.local/bin:$PATH"
9
 
10
  WORKDIR /app
 
 
11
 
12
- COPY --chown=user ./requirements.txt requirements.txt
13
- RUN pip install --no-cache-dir --upgrade -r requirements.txt
14
 
15
- COPY --chown=user . /app
16
- CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "7868"]
 
 
 
 
 
8
  ENV PATH="/home/user/.local/bin:$PATH"
9
 
10
  WORKDIR /app
11
+ # Copy app code
12
+ COPY . .
13
 
14
+ # ybyjngamhtcuaupc gsmt
 
15
 
16
+ # Make the entire /app directory fully writeable for all users
17
+ RUN chmod -R 777 /app
18
+
19
+ # Ensure the app runs as the same user as the Space UI
20
+ RUN useradd -m -u 1000 user
21
+ USER user