Spaces:
Running
Running
BloodyInside
commited on
Commit
•
c4685d0
1
Parent(s):
c2f6a7b
AFA
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
@@ -46,15 +46,16 @@ WORKDIR /code
|
|
46 |
|
47 |
USER root
|
48 |
# Use secrets during build
|
|
|
49 |
RUN --mount=type=secret,id=HOST,required=true \
|
50 |
--mount=type=secret,id=DJANGO_SECRET,required=true \
|
51 |
--mount=type=secret,id=SECURE_TOKEN,required=true \
|
52 |
--mount=type=secret,id=WORKER_TOKEN,required=true \
|
53 |
--mount=type=secret,id=CLOUDFLARE_TURNSTILE_SECRET,required=true \
|
54 |
--mount=type=secret,id=REDIS_URL,required=true \
|
55 |
-
bash -c 'cp -r /run/secrets/* /secrets'
|
56 |
|
57 |
-
RUN chown -R user:user /
|
58 |
USER user
|
59 |
|
60 |
RUN bash -c 'export HOST=$(cat /secrets/HOST) && \
|
|
|
46 |
|
47 |
USER root
|
48 |
# Use secrets during build
|
49 |
+
RUN mkdir -p /secrets
|
50 |
RUN --mount=type=secret,id=HOST,required=true \
|
51 |
--mount=type=secret,id=DJANGO_SECRET,required=true \
|
52 |
--mount=type=secret,id=SECURE_TOKEN,required=true \
|
53 |
--mount=type=secret,id=WORKER_TOKEN,required=true \
|
54 |
--mount=type=secret,id=CLOUDFLARE_TURNSTILE_SECRET,required=true \
|
55 |
--mount=type=secret,id=REDIS_URL,required=true \
|
56 |
+
bash -c 'cp -r /run/secrets/* /secrets/'
|
57 |
|
58 |
+
RUN chown -R user:user /secrets
|
59 |
USER user
|
60 |
|
61 |
RUN bash -c 'export HOST=$(cat /secrets/HOST) && \
|