jatin-tec commited on
Commit
2bf11bd
1 Parent(s): 680df0b
Files changed (1) hide show
  1. Dockerfile +10 -2
Dockerfile CHANGED
@@ -12,6 +12,14 @@ RUN apt-get install -y build-essential cmake pkg-config \
12
 
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
- COPY . .
 
16
 
17
- CMD panel serve /code/app.py --address 0.0.0.0 --port 7860 --allow-websocket-origin=jatin-tech-SkinZen.hf.space
 
 
 
 
 
 
 
 
12
 
13
  RUN pip install --no-cache-dir -r requirements.txt
14
 
15
+ RUN useradd -m -u 1000 user
16
+ USER user
17
 
18
+ ENV HOME=/home/user \
19
+ PATH=/home/user/.local/bin:$PATH
20
+
21
+ WORKDIR $HOME/app
22
+
23
+ COPY --chown=user . $HOME/app
24
+
25
+ CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "7860"]