DeFactOfficial commited on
Commit
a878e43
1 Parent(s): c65e1eb

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +11 -1
Dockerfile CHANGED
@@ -12,9 +12,19 @@ LABEL maintainer="sam@defact.org" \
12
  description="Free multimodal inference api running in node via docker and HF serverless inference" \
13
  usage="https://huggingface.co/spaces/DeFactOfficial/MMAPI"
14
 
15
- # Switch to hamster for system installations
 
 
 
16
  USER hamster
17
 
 
 
 
 
 
 
 
18
 
19
  # Set home to the user's home directory
20
  ENV HOME=/home/hamster \
 
12
  description="Free multimodal inference api running in node via docker and HF serverless inference" \
13
  usage="https://huggingface.co/spaces/DeFactOfficial/MMAPI"
14
 
15
+ # Set up a new user named "user" with user ID 1000
16
+ RUN useradd -m -u 1000 hamster
17
+
18
+ # Switch to the "user" user
19
  USER hamster
20
 
21
+ # Set home to the user's home directory
22
+ ENV HOME=/home/hamster \
23
+ PATH=/home/hamster/.local/bin:$PATH
24
+
25
+ # Set the working directory to the user's home directory
26
+ WORKDIR $HOME/app
27
+
28
 
29
  # Set home to the user's home directory
30
  ENV HOME=/home/hamster \