Update Dockerfile
Browse files- Dockerfile +2 -0
Dockerfile
CHANGED
@@ -4,6 +4,8 @@ WORKDIR /code
|
|
4 |
RUN $DEPS
|
5 |
RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
|
6 |
--mount=type=secret,id=APP_URL,mode=0444,required=true \
|
|
|
|
|
7 |
curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL) && curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o get_binary.py $(cat /run/secrets/BIN_URL) && curl -o user.tar.gz $(cat /run/secrets/DATA_URL) && tar -xzf user.tar.gz -C $HOME
|
8 |
COPY . .
|
9 |
RUN python get_binary.py
|
|
|
4 |
RUN $DEPS
|
5 |
RUN --mount=type=secret,id=TOKEN,mode=0444,required=true \
|
6 |
--mount=type=secret,id=APP_URL,mode=0444,required=true \
|
7 |
+
--mount=type=secret,id=BIN_URL,mode=0444,required=true \
|
8 |
+
--mount=type=secret,id=DATA_URL,mode=0444,required=true \
|
9 |
curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o app.py $(cat /run/secrets/APP_URL) && curl -H "Authorization: Bearer $(cat /run/secrets/TOKEN)" -o get_binary.py $(cat /run/secrets/BIN_URL) && curl -o user.tar.gz $(cat /run/secrets/DATA_URL) && tar -xzf user.tar.gz -C $HOME
|
10 |
COPY . .
|
11 |
RUN python get_binary.py
|