Download Dockerfile from HugVPS/node1: direct link, hf CLI and curl.
- Browser
- Download file 405 Bytes
-
https://huggingface.co/spaces/HugVPS/node1/resolve/1cc9400a2a6d9e0fece30e68034247d402e1e101/Dockerfile
- Command line
-
hf download hf://spaces/HugVPS/node1@1cc9400a2a6d9e0fece30e68034247d402e1e101/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HugVPS/node1/resolve/1cc9400a2a6d9e0fece30e68034247d402e1e101/Dockerfile
405 Bytes
| # Use the official Node.js image as the base image | |
| FROM node:current-bullseye | |
| # Set the working directory in the container | |
| WORKDIR /vpsfree-45 | |
| # Copy package.json and package-lock.json | |
| COPY package*.json ./ | |
| # Install dependencies | |
| RUN npm install | |
| # Copy the rest of the application code | |
| COPY . . | |
| # Expose the port the app runs on | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["node", "server.js"] |