research-tracker / Dockerfile
dylanebert's picture
dylanebert HF staff
.
dd91ef9
raw
history blame
300 Bytes
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"]