FROM node:alpine WORKDIR /app COPY viewer/package.json package.json RUN npm install RUN --mount=type=secret,id=VITE_HF_TOKEN,mode=0444,required=true \ echo "VITE_HF_TOKEN=$(cat /run/secrets/VITE_HF_TOKEN)" > /app/.env COPY viewer/ /app RUN npm run build EXPOSE 3000 CMD ["npm", "start"]