jbilcke-hf HF staff commited on
Commit
53ef178
1 Parent(s): 924c562

trying something

Browse files
Files changed (1) hide show
  1. Dockerfile +6 -1
Dockerfile CHANGED
@@ -50,7 +50,12 @@ COPY --chown=user . /app
50
 
51
  RUN npm ci --force
52
 
53
- RUN npm run build
 
 
 
 
 
54
 
55
  EXPOSE 3000
56
 
 
50
 
51
  RUN npm ci --force
52
 
53
+ # expose our secrets during build
54
+ RUN --mount=type=secret,id=UPSTASH_REDIS_REST_TOKEN,mode=0444,required=true \
55
+ --mount=type=secret,id=UPSTASH_REDIS_REST_URL,mode=0444,required=true \
56
+ UPSTASH_REDIS_REST_TOKEN=$(cat /run/secrets/UPSTASH_REDIS_REST_TOKEN) \
57
+ UPSTASH_REDIS_REST_URL=$(cat /run/secrets/UPSTASH_REDIS_REST_URL) \
58
+ npm run build
59
 
60
  EXPOSE 3000
61