Download Dockerfile from HugVPS/ws: direct link, hf CLI and curl.
- Browser
- Download file 344 Bytes
-
https://huggingface.co/spaces/HugVPS/ws/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/HugVPS/ws/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/HugVPS/ws/resolve/main/Dockerfile
344 Bytes
| # Use the official Node.js image | |
| FROM node:18 | |
| # Set the working directory | |
| WORKDIR /websocket | |
| # 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 WebSocket port | |
| EXPOSE 7860 | |
| # Command to run the application | |
| CMD ["npm", "start"] |