Spaces:
Sleeping
Sleeping
Download frontend/Dockerfile from akoulapure/cattle-classifier-code: direct link, hf CLI and curl.
- Browser
- Download file 305 Bytes
-
https://huggingface.co/spaces/akoulapure/cattle-classifier-code/resolve/main/frontend/Dockerfile
- Command line
-
hf download hf://spaces/akoulapure/cattle-classifier-code/frontend/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/akoulapure/cattle-classifier-code/resolve/main/frontend/Dockerfile
305 Bytes
| # Frontend Dockerfile | |
| FROM node:20-alpine AS build | |
| WORKDIR /app | |
| COPY package*.json ./ | |
| RUN npm ci | |
| COPY . . | |
| RUN npm run build | |
| # Serve with nginx | |
| FROM nginx:alpine | |
| COPY --from=build /app/dist /usr/share/nginx/html | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf | |
| EXPOSE 80 | |
| CMD ["nginx", "-g", "daemon off;"] | |