snsynth commited on
Commit
35b9c8d
·
1 Parent(s): 1760b31

changing permissions

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -6
Dockerfile CHANGED
@@ -1,15 +1,16 @@
1
  FROM python:3.10-slim
2
 
3
- WORKDIR /app
 
 
 
 
 
4
 
5
  # Install Python deps
6
- COPY requirements.txt .
7
  RUN pip install --no-cache-dir -r requirements.txt
8
 
9
- # Copy app code
10
- COPY app.py .
11
- COPY models ./models
12
-
13
  # Expose port used by uvicorn
14
  EXPOSE 7860
15
 
 
1
  FROM python:3.10-slim
2
 
3
+ RUN useradd user
4
+ USER user
5
+ ENV HOME=/home/user \
6
+ PATH=/home/user/.local/bin:$PATH
7
+
8
+ WORKDIR $HOME/app
9
 
10
  # Install Python deps
11
+ COPY --chown=user ./ $HOME/app
12
  RUN pip install --no-cache-dir -r requirements.txt
13
 
 
 
 
 
14
  # Expose port used by uvicorn
15
  EXPOSE 7860
16