Spaces:
Sleeping
Sleeping
Commit
·
d5132cb
1
Parent(s):
4fd8432
sadad
Browse files- Dockerfile +2 -3
Dockerfile
CHANGED
@@ -22,9 +22,6 @@ RUN --mount=type=secret,id=HOST,required=true \
|
|
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
|
27 |
-
|
28 |
RUN chown user:user /etc/profile.d/secrets.sh
|
29 |
|
30 |
|
@@ -70,6 +67,8 @@ RUN pip install --no-cache-dir --upgrade pip \
|
|
70 |
COPY --chown=user . /code
|
71 |
WORKDIR /code
|
72 |
|
|
|
|
|
73 |
RUN . /etc/profile.d/secrets.sh && \
|
74 |
bash -c 'python manage.py makemigrations && \
|
75 |
python manage.py migrate --database=default && \
|
|
|
22 |
printf 'REDIS_URL=\"%s\"\n' \"$(cat /run/secrets/REDIS_URL)\" >> /etc/profile.d/secrets.sh"
|
23 |
|
24 |
|
|
|
|
|
|
|
25 |
RUN chown user:user /etc/profile.d/secrets.sh
|
26 |
|
27 |
|
|
|
67 |
COPY --chown=user . /code
|
68 |
WORKDIR /code
|
69 |
|
70 |
+
RUN cat /etc/profile.d/secrets.sh
|
71 |
+
|
72 |
RUN . /etc/profile.d/secrets.sh && \
|
73 |
bash -c 'python manage.py makemigrations && \
|
74 |
python manage.py migrate --database=default && \
|