Spaces:
Runtime error
Runtime error
Download Dockerfile from mistpe/SoundVerse: direct link, hf CLI and curl.
- Browser
- Download file 622 Bytes
-
https://huggingface.co/spaces/mistpe/SoundVerse/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/mistpe/SoundVerse/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/mistpe/SoundVerse/resolve/main/Dockerfile
622 Bytes
| # Use Node.js 20 as base image | |
| FROM node:20-alpine | |
| # Install git | |
| RUN apk add --no-cache git | |
| # Set working directory | |
| WORKDIR /app | |
| # Clone the repository | |
| RUN git clone https://github.com/zhanghxiao/SoundVerse.git . | |
| # Install dependencies | |
| RUN npm install | |
| # Modify the build command to bypass TypeScript checks | |
| RUN sed -i 's/"build": "tsc -b && vite build"/"build": "vite build"/g' package.json | |
| # Build the application | |
| RUN npm run build | |
| # Install serve globally | |
| RUN npm install -g serve | |
| # Set environment variables | |
| ENV PORT=7860 | |
| # Expose port | |
| EXPOSE 7860 | |
| # Start the service | |
| CMD ["serve", "-s", "dist", "-l", "7860"] |