BloodyInside commited on
Commit
6e6b8e4
1 Parent(s): fa5a125
Files changed (1) hide show
  1. Dockerfile +6 -6
Dockerfile CHANGED
@@ -48,12 +48,12 @@ RUN --mount=type=secret,id=HOST,required=true \
48
  --mount=type=secret,id=WORKER_TOKEN,required=true \
49
  --mount=type=secret,id=CLOUDFLARE_TURNSTILE_SECRET,required=true \
50
  --mount=type=secret,id=REDIS_URL,required=true \
51
- bash -c 'source /run/secrets/HOST && \
52
- source /run/secrets/DJANGO_SECRET && \
53
- source /run/secrets/SECURE_TOKEN && \
54
- source /run/secrets/WORKER_TOKEN && \
55
- source /run/secrets/CLOUDFLARE_TURNSTILE_SECRET && \
56
- source /run/secrets/REDIS_URL && \
57
  python manage.py makemigrations && \
58
  python manage.py migrate --database=default && \
59
  python manage.py migrate --database=cache && \
 
48
  --mount=type=secret,id=WORKER_TOKEN,required=true \
49
  --mount=type=secret,id=CLOUDFLARE_TURNSTILE_SECRET,required=true \
50
  --mount=type=secret,id=REDIS_URL,required=true \
51
+ bash -c 'export HOST=$(cat /run/secrets/HOST) && \
52
+ export DJANGO_SECRET=$(cat /run/secrets/DJANGO_SECRET) && \
53
+ export SECURE_TOKEN=$(cat /run/secrets/SECURE_TOKEN) && \
54
+ export WORKER_TOKEN=$(cat /run/secrets/WORKER_TOKEN) && \
55
+ export CLOUDFLARE_TURNSTILE_SECRET=$(cat /run/secrets/CLOUDFLARE_TURNSTILE_SECRET) && \
56
+ export REDIS_URL=$(cat /run/secrets/REDIS_URL) && \
57
  python manage.py makemigrations && \
58
  python manage.py migrate --database=default && \
59
  python manage.py migrate --database=cache && \