Download Dockerfile from PyxiVerse/server2: direct link, hf CLI and curl.
- Browser
- Download file 435 Bytes
-
https://huggingface.co/spaces/PyxiVerse/server2/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/PyxiVerse/server2/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/PyxiVerse/server2/resolve/main/Dockerfile
435 Bytes
| # Use the Node.js 18 slim image as a parent image | |
| FROM node:18-slim | |
| # Install git (required for cloning the repository) | |
| RUN apt-get update && apt-get install -y git | |
| # Set the working directory in the container | |
| WORKDIR /app | |
| # Clone the repository | |
| RUN git clone https://huggingface.co/datasets/PyxiVerse/server . | |
| # Install the dependencies | |
| RUN npm install | |
| # Expose port 7860 | |
| EXPOSE 7860 | |
| # Start the application | |
| CMD ["npm", "start"] |