Spaces:
Sleeping
Sleeping
FROM node:19 as star-history-builder | |
WORKDIR /app | |
RUN apt-get update && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \ | |
git && \ | |
rm -rf /var/lib/apt/lists/* | |
RUN git clone https://github.com/thomwolf/hf-star-history.git | |
WORKDIR /app/hf-star-history | |
RUN npm install -g pnpm | |
RUN pnpm i | |
RUN pnpm vite build | |
RUN chown -R node /app/hf-star-history | |
USER node | |
ENTRYPOINT ["/bin/bash", "-c"] | |
CMD ["pnpm dev"] | |