research-tracker / Dockerfile
dylanebert's picture
dylanebert HF staff
update docker image
995bc63
raw
history blame
302 Bytes
FROM node:20-buster
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"]