lucas-wa commited on
Commit
d7d8524
·
1 Parent(s): bd6b16c

Fixing bugs

Browse files
Files changed (2) hide show
  1. .inference.py.swp +0 -0
  2. Dockerfile +9 -0
.inference.py.swp ADDED
Binary file (12.3 kB). View file
 
Dockerfile CHANGED
@@ -19,6 +19,15 @@ COPY entrypoint.sh /entrypoint.sh
19
 
20
  RUN chmod +x /entrypoint.sh
21
 
 
 
 
 
 
 
 
 
 
22
  ENTRYPOINT ["/entrypoint.sh"]
23
 
24
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]
 
19
 
20
  RUN chmod +x /entrypoint.sh
21
 
22
+ RUN useradd -m -u 1000 user
23
+ USER user
24
+ ENV HOME=/home/user \
25
+ PATH=/home/user/.local/bin:$PATH
26
+
27
+ WORKDIR $HOME/app
28
+
29
+ COPY --chown=user . $HOME/app
30
+
31
  ENTRYPOINT ["/entrypoint.sh"]
32
 
33
  CMD ["uvicorn", "app:app", "--host", "0.0.0.0", "--port", "80"]