Spaces:
Sleeping
Sleeping
Download frontend/Dockerfile.frontend from orakzai-io/Rednote: direct link, hf CLI and curl.
- Browser
- Download file 922 Bytes
-
https://huggingface.co/spaces/orakzai-io/Rednote/resolve/main/frontend/Dockerfile.frontend
- Command line
-
hf download hf://spaces/orakzai-io/Rednote/frontend/Dockerfile.frontend
-
curl -L -o Dockerfile.frontend https://huggingface.co/spaces/orakzai-io/Rednote/resolve/main/frontend/Dockerfile.frontend
922 Bytes
| # ββ Build stage βββββββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FROM node:22-alpine AS builder | |
| ARG VITE_API_URL=/api | |
| ENV VITE_API_URL=$VITE_API_URL | |
| WORKDIR /app | |
| # Copy dependency manifests and install | |
| COPY frontend/package.json frontend/package-lock.json ./ | |
| RUN npm ci | |
| # Copy source code and build | |
| COPY frontend/ ./ | |
| RUN npm run build | |
| # ββ Production stage ββββββββββββββββββββββββββββββββββββββββββββββββ | |
| FROM nginx:alpine | |
| # Copy the built assets from the builder stage | |
| COPY --from=builder /app/dist /usr/share/nginx/html | |
| # Copy the custom Nginx configuration | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| # Expose port 80 | |
| EXPOSE 80 | |
| CMD ["nginx", "-g", "daemon off;"] |