File size: 282 Bytes
70a459f
0244d91
 
31a2d08
70a459f
0244d91
9cfda07
 
 
31a2d08
70a459f
0244d91
75366ff
31a2d08
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM node:alpine

WORKDIR /app
COPY 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 / /app
RUN npm run build

EXPOSE 3000
CMD ["npm", "start"]