Spaces:
Running
Running
Update Dockerfile
Browse files12 unmodified lines1314151617181920212223242526272814 unmodified lines4344454647484912 unmodified linesusage="https://huggingface.co/spaces/DeFactOfficial/MMAPI"# Set up a new user named "user" with user ID 1000#RUN useradd -m -u 1027 root# Switch to the "user" userUSER root# Set home to the user's home directoryENV HOME=/home/root \PATH=/home/root/.local/bin:$PATH \STATIC_SITE_root=$HOME/code/public# Install Node.js 20 (using n instead of nodesource for better HF compatibility)RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \14 unmodified lines# Copy the current directory contents into the container at $HOME/app setting the owner to the userADD . $HOME/codeCOPY --chown=root . $HOME/code# INSTALL NPM PACKAGES# INSTALL FFMPEG TOOLING12 unmodified lines1314151617181920212223242526272814 unmodified lines4344454647484912 unmodified linesusage="https://huggingface.co/spaces/DeFactOfficial/MMAPI"# Set up a new user named "user" with user ID 1000RUN useradd -o -u 1000 user# Switch to the "user" userUSER user# Set home to the user's home directoryENV HOME=/home/user \PATH=/home/user/.local/bin:$PATH \STATIC_SITE_user=$HOME/code/public# Install Node.js 20 (using n instead of nodesource for better HF compatibility)RUN curl -L https://raw.githubusercontent.com/tj/n/master/bin/n -o n \14 unmodified lines# Copy the current directory contents into the container at $HOME/app setting the owner to the userADD . $HOME/codeCOPY --chown=user . $HOME/code# INSTALL NPM PACKAGES# INSTALL FFMPEG TOOLING
Dockerfile+6-6