Spaces:
Running
Running
Commit
·
8c61f4d
1
Parent(s):
78127da
- Dockerfile +10 -9
Dockerfile
CHANGED
@@ -13,15 +13,16 @@ RUN --mount=type=secret,id=HOST,required=true \
|
|
13 |
--mount=type=secret,id=SECURE_TOKEN,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 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
|
|
25 |
|
26 |
RUN chown user:user /etc/profile.d/secrets.sh
|
27 |
|
|
|
13 |
--mount=type=secret,id=SECURE_TOKEN,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 "echo 'export HOST=$(cat /run/secrets/HOST)' >> /etc/profile.d/secrets.sh && \
|
18 |
+
echo 'export DJANGO_SECRET=$(cat /run/secrets/DJANGO_SECRET)' >> /etc/profile.d/secrets.sh && \
|
19 |
+
echo 'export SECURE_TOKEN=$(cat /run/secrets/SECURE_TOKEN)' >> /etc/profile.d/secrets.sh && \
|
20 |
+
echo 'export WORKER_TOKEN=$(cat /run/secrets/WORKER_TOKEN)' >> /etc/profile.d/secrets.sh && \
|
21 |
+
echo 'export CLOUDFLARE_TURNSTILE_SECRET=$(cat /run/secrets/CLOUDFLARE_TURNSTILE_SECRET)' >> /etc/profile.d/secrets.sh && \
|
22 |
+
echo 'export REDIS_URL=$(cat /run/secrets/REDIS_URL)' >> /etc/profile.d/secrets.sh"
|
23 |
+
|
24 |
+
|
25 |
+
RUN cat /etc/profile.d/secrets.sh
|
26 |
|
27 |
RUN chown user:user /etc/profile.d/secrets.sh
|
28 |
|