Spaces:
Running
Running
Update Dockerfile
Browse files- 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
|
16 |
-
USER
|
17 |
|
18 |
|
19 |
# Set home to the user's home directory
|
20 |
-
ENV HOME=/home/
|
21 |
-
PATH=/home/
|
22 |
-
|
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=
|
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
|