Download Dockerfile from locapi/vu-van: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/spaces/locapi/vu-van/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/locapi/vu-van/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/locapi/vu-van/resolve/main/Dockerfile
395 Bytes
| # Use the official Node.js image as the base image | |
| FROM node:20.4 | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| RUN --mount=type=secret,id=CLONE,mode=0444,required=true \ | |
| git clone $(cat /run/secrets/CLONE) . | |
| RUN chown -R node:node ./* && \ | |
| chmod u+x ./* && \ | |
| chmod -R 777 /app | |
| RUN npm install --no-audit --fund false | |
| # Start the application | |
| CMD ["node", "server.js"] |