Spaces:
Sleeping
Sleeping
Download Dockerfile from Ibrahim-Study/equal-2-step: direct link, hf CLI and curl.
- Browser
- Download file 491 Bytes
-
https://huggingface.co/spaces/Ibrahim-Study/equal-2-step/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/Ibrahim-Study/equal-2-step/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/Ibrahim-Study/equal-2-step/resolve/main/Dockerfile
491 Bytes
| # Build stage | |
| FROM node:20-alpine as build | |
| WORKDIR /app | |
| # Copy package files and install dependencies | |
| COPY package.json package-lock.json ./ | |
| RUN npm ci | |
| # Copy all files and build the project | |
| COPY . . | |
| RUN npm run build | |
| # Serve stage | |
| FROM node:20-alpine as serve | |
| WORKDIR /app | |
| # Install serve globally | |
| RUN npm install -g serve | |
| # Copy built files from previous stage | |
| COPY --from=build /app/dist ./dist | |
| # Expose port and start server | |
| EXPOSE 7860 | |
| CMD ["serve", "-s", "dist", "-l", "7860"] |