Spaces:
Sleeping
Sleeping
Download Dockerfile from Aiprojectttt/DistractIQ: direct link, hf CLI and curl.
- Browser
- Download file 449 Bytes
-
https://huggingface.co/spaces/Aiprojectttt/DistractIQ/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Aiprojectttt/DistractIQ/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Aiprojectttt/DistractIQ/resolve/main/Dockerfile
449 Bytes
| # Stage 1: Build | |
| FROM node:20-alpine AS build | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build | |
| # Stage 2: Serve | |
| FROM nginx:stable-alpine | |
| # Copy files from build stage to Nginx folder | |
| COPY --from=build /app/dist /usr/share/nginx/html | |
| # FORCE Nginx to listen on Port 7860 (HF Requirement) | |
| RUN sed -i 's/listen 80;/listen 7860;/' /etc/nginx/conf.d/default.conf | |
| EXPOSE 7860 | |
| CMD ["nginx", "-g", "daemon off;"] | |