Spaces:
Runtime error
Runtime error
Commit
·
60e1c36
1
Parent(s):
4c54306
printf
Browse files- Dockerfile +7 -6
Dockerfile
CHANGED
|
@@ -14,12 +14,13 @@ RUN --mount=type=secret,id=HOST,required=true \
|
|
| 14 |
--mount=type=secret,id=WORKER_TOKEN,required=true \
|
| 15 |
--mount=type=secret,id=CLOUDFLARE_TURNSTILE_SECRET,required=true \
|
| 16 |
--mount=type=secret,id=REDIS_URL,required=true \
|
| 17 |
-
bash -c "
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
|
|
|
| 23 |
|
| 24 |
|
| 25 |
RUN cat /etc/profile.d/secrets.sh
|
|
|
|
| 14 |
--mount=type=secret,id=WORKER_TOKEN,required=true \
|
| 15 |
--mount=type=secret,id=CLOUDFLARE_TURNSTILE_SECRET,required=true \
|
| 16 |
--mount=type=secret,id=REDIS_URL,required=true \
|
| 17 |
+
bash -c "printf 'HOST=\"%s\"\n' \"$(cat /run/secrets/HOST)\" >> /etc/profile.d/secrets.sh && \
|
| 18 |
+
printf 'DJANGO_SECRET=\"%s\"\n' \"$(cat /run/secrets/DJANGO_SECRET)\" >> /etc/profile.d/secrets.sh && \
|
| 19 |
+
printf 'SECURE_TOKEN=\"%s\"\n' \"$(cat /run/secrets/SECURE_TOKEN)\" >> /etc/profile.d/secrets.sh && \
|
| 20 |
+
printf 'WORKER_TOKEN=\"%s\"\n' \"$(cat /run/secrets/WORKER_TOKEN)\" >> /etc/profile.d/secrets.sh && \
|
| 21 |
+
printf 'CLOUDFLARE_TURNSTILE_SECRET=\"%s\"\n' \"$(cat /run/secrets/CLOUDFLARE_TURNSTILE_SECRET)\" >> /etc/profile.d/secrets.sh && \
|
| 22 |
+
printf 'REDIS_URL=\"%s\"\n' \"$(cat /run/secrets/REDIS_URL)\" >> /etc/profile.d/secrets.sh"
|
| 23 |
+
|
| 24 |
|
| 25 |
|
| 26 |
RUN cat /etc/profile.d/secrets.sh
|