File size: 515 Bytes
35e2bc3
 
9e831e6
35e2bc3
9e831e6
35e2bc3
030bda4
8dbde7a
35e2bc3
 
 
 
 
9e831e6
35e2bc3
 
fc9dd89
35e2bc3
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# Stage 1: Build
FROM node:20-alpine AS builder

RUN apk add --no-cache git

ARG CACHE_BUST=1
RUN git clone --depth 1 https://github.com/open-world-agents/open-world-agents /owa

WORKDIR /owa/projects/owa-dataset-visualizer
RUN npm ci && npm run build

# Stage 2: Serve with nginx
FROM nginx:alpine

COPY --from=builder /owa/projects/owa-dataset-visualizer/dist /usr/share/nginx/html
COPY nginx.conf /etc/nginx/conf.d/default.conf

# HuggingFace Spaces uses port 7860
EXPOSE 7860
CMD ["nginx", "-g", "daemon off;"]