Spaces:
Running
Running
Download Dockerfile from fouad12344321/front: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/fouad12344321/front/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/fouad12344321/front/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/fouad12344321/front/resolve/main/Dockerfile
447 Bytes
| # ----------------------------- | |
| # 1️⃣ Build Stage | |
| # ----------------------------- | |
| FROM node:20-alpine AS builder | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build | |
| # ----------------------------- | |
| # 2️⃣ Production Stage | |
| # ----------------------------- | |
| FROM node:20-alpine | |
| WORKDIR /app | |
| RUN npm install -g serve | |
| COPY --from=builder /app/build ./build | |
| EXPOSE 7860 | |
| CMD ["serve", "-s", "build", "-l", "7860"] |