Spaces:
Running
Running
File size: 558 Bytes
472c021 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | # Stage 1: Build
FROM node:20-alpine AS builder
RUN apk add --no-cache git
ARG CACHE_BUST=2026-03-09
RUN git clone --depth 1 https://github.com/cloneisyou/dataset-visualizer /workspace
WORKDIR /workspace
RUN npm ci && npm run build
# Stage 2: Serve with nginx
FROM nginx:alpine
ARG CACHE_BUST=2026-03-09
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;"] |