q275343119's picture
fix build
cf48ec7
Raw
History Blame Contribute Delete
526 Bytes
FROM node:24-bookworm-slim
ENV HOST=0.0.0.0 \
PORT=7860
WORKDIR /app
RUN apt-get update \
&& apt-get install -y --no-install-recommends git ca-certificates \
&& rm -rf /var/lib/apt/lists/*
RUN git clone --depth 1 https://github.com/embedding-benchmark/leaderboard-analytics-frontend.git /app/app
WORKDIR /app/app
RUN npm ci --include=dev \
&& npm run build \
&& npm prune --omit=dev
ENV NODE_ENV=production
COPY start.sh /app/start.sh
RUN chmod +x /app/start.sh
EXPOSE 7860
CMD ["/app/start.sh"]