Download Dockerfile from clone3/Visitor: direct link, hf CLI and curl.
- Browser
- Download file 297 Bytes
-
https://huggingface.co/spaces/clone3/Visitor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/clone3/Visitor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/clone3/Visitor/resolve/main/Dockerfile
297 Bytes
| # Use the official Node.js image | |
| FROM node:18 | |
| # Set working directory inside the container | |
| WORKDIR /app | |
| # Copy package.json and install dependencies | |
| COPY package*.json ./ | |
| RUN npm install | |
| # Copy the rest of the app code | |
| COPY . . | |
| # Expose the port | |
| EXPOSE 8080 | |
| # Run the app | |
| CMD ["npm", "start"] |