Spaces:
Paused
Paused
Andrew Smith
commited on
Commit
·
c7994dd
1
Parent(s):
48e00e6
Update secret retrieval
Browse files- Dockerfile +2 -2
Dockerfile
CHANGED
@@ -4,9 +4,9 @@ WORKDIR /code
|
|
4 |
|
5 |
COPY . /code
|
6 |
|
7 |
-
# Get secret DB_URL and
|
8 |
RUN --mount=type=secret,id=DB_URL,mode=0444,required=true \
|
9 |
-
|
10 |
|
11 |
RUN pip install --no-cache-dir poetry
|
12 |
|
|
|
4 |
|
5 |
COPY . /code
|
6 |
|
7 |
+
# Get secret DB_URL and output it to /test at buildtime
|
8 |
RUN --mount=type=secret,id=DB_URL,mode=0444,required=true \
|
9 |
+
cat /run/secrets/DB_URL > /test
|
10 |
|
11 |
RUN pip install --no-cache-dir poetry
|
12 |
|