Spaces:
Sleeping
Sleeping
Download Dockerfile from underrate/snake-reactor: direct link, hf CLI and curl.
- Browser
- Download file 545 Bytes
-
https://huggingface.co/spaces/underrate/snake-reactor/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/underrate/snake-reactor/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/underrate/snake-reactor/resolve/main/Dockerfile
545 Bytes
| # Build stage | |
| FROM node:18-alpine AS builder | |
| WORKDIR /app | |
| # Install dependencies with legacy peer deps flag | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| # Build using node_modules/.bin/vite directly | |
| RUN node node_modules/vite/bin/vite.js build | |
| # Production stage with nginx | |
| FROM nginx:alpine | |
| # Copy built files to nginx html directory | |
| COPY --from=builder /app/dist /usr/share/nginx/html | |
| # Copy nginx configuration | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| EXPOSE 7860 | |
| CMD ["nginx", "-g", "daemon off;"] | |