Spaces:
Running
Running
Commit
•
53ef178
1
Parent(s):
924c562
trying something
Browse files- Dockerfile +6 -1
Dockerfile
CHANGED
@@ -50,7 +50,12 @@ COPY --chown=user . /app
|
|
50 |
|
51 |
RUN npm ci --force
|
52 |
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
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 |
|