aryan365 commited on
Commit
b775946
·
verified ·
1 Parent(s): 90a3feb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +7 -0
Dockerfile CHANGED
@@ -24,7 +24,14 @@ COPY templates/ /app/templates/
24
  # Install dependencies
25
  RUN pip install --no-cache-dir -r requirements.txt
26
  RUN pip install --upgrade tensorflow keras gunicorn
 
 
 
 
27
 
 
 
 
28
  # Preload the model to avoid runtime delays
29
 
30
  # Expose the port
 
24
  # Install dependencies
25
  RUN pip install --no-cache-dir -r requirements.txt
26
  RUN pip install --upgrade tensorflow keras gunicorn
27
+ RUN useradd -m -u 1000 user
28
+ USER user
29
+ ENV HOME=/home/user \
30
+ PATH=/home/user/.local/bin:$PATH
31
 
32
+ WORKDIR $HOME/app
33
+
34
+ COPY --chown=user . $HOME/app
35
  # Preload the model to avoid runtime delays
36
 
37
  # Expose the port