Spaces:
Sleeping
Sleeping
Download Dockerfile from clonelabs/annotate_dataset: direct link, hf CLI and curl.
- Browser
- Download file 558 Bytes
-
https://huggingface.co/spaces/clonelabs/annotate_dataset/resolve/main/Dockerfile
- Command line
-
hf download hf://spaces/clonelabs/annotate_dataset/Dockerfile
-
curl -L -o Dockerfile https://huggingface.co/spaces/clonelabs/annotate_dataset/resolve/main/Dockerfile
558 Bytes
| # Stage 1: Build | |
| FROM node:20-alpine AS builder | |
| RUN apk add --no-cache git | |
| ARG CACHE_BUST=2026-04-03 | |
| RUN git clone --depth 1 https://github.com/cloneisyou/dataset-annotator /workspace | |
| WORKDIR /workspace | |
| RUN npm ci && npm run build | |
| # Stage 2: Serve with nginx | |
| FROM nginx:alpine | |
| ARG CACHE_BUST=2026-04-03 | |
| RUN echo "Cache bust: $CACHE_BUST" | |
| COPY --from=builder /workspace/dist /usr/share/nginx/html | |
| COPY --from=builder /workspace/nginx.conf /etc/nginx/conf.d/default.conf | |
| # HuggingFace Spaces uses port 7860 | |
| EXPOSE 7860 | |
| CMD ["nginx", "-g", "daemon off;"] | |