DeFactOfficial commited on
Commit
c65e1eb
·
verified ·
1 Parent(s): 59dff58

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -12,14 +12,14 @@ 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 root for system installations
16
- USER root
17
 
18
 
19
  # Set home to the user's home directory
20
- ENV HOME=/home/root \
21
- PATH=/home/root/.local/bin:$PATH \
22
- STATIC_SITE_ROOT=$HOME/code/public
23
 
24
  # Install Node.js 20 (using n instead of nodesource for better HF compatibility)
25
  RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \
@@ -40,7 +40,7 @@ WORKDIR $HOME/code
40
 
41
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
42
  ADD . $HOME/code
43
- COPY --chown=root . $HOME/code
44
 
45
  # INSTALL NPM PACKAGES
46
  # INSTALL FFMPEG TOOLING
 
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 \
21
+ PATH=/home/hamster/.local/bin:$PATH \
22
+ STATIC_SITE_hamster=$HOME/code/public
23
 
24
  # Install Node.js 20 (using n instead of nodesource for better HF compatibility)
25
  RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \
 
40
 
41
  # Copy the current directory contents into the container at $HOME/app setting the owner to the user
42
  ADD . $HOME/code
43
+ COPY --chown=hamster . $HOME/code
44
 
45
  # INSTALL NPM PACKAGES
46
  # INSTALL FFMPEG TOOLING