Andrew Smith commited on
Commit
c7994dd
·
1 Parent(s): 48e00e6

Update secret retrieval

Browse files
Files changed (1) hide show
  1. Dockerfile +2 -2
Dockerfile CHANGED
@@ -4,9 +4,9 @@ WORKDIR /code
4
 
5
  COPY . /code
6
 
7
- # Get secret DB_URL and clone it as repo at buildtime
8
  RUN --mount=type=secret,id=DB_URL,mode=0444,required=true \
9
- git clone $(cat /run/secrets/DB_URL)
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