Update Dockerfile
Browse files- Dockerfile +3 -2
Dockerfile
CHANGED
|
@@ -1,4 +1,5 @@
|
|
| 1 |
FROM gradle:8.8-jdk17 AS build
|
| 2 |
-
|
| 3 |
-
|
|
|
|
| 4 |
RUN git clone https://subjectid1:$TOKEN@github.com/subjectid1/dms.git
|
|
|
|
| 1 |
FROM gradle:8.8-jdk17 AS build
|
| 2 |
+
RUN --mount=type=secret,id=TOKEN,target=/run/secrets/TOKEN \
|
| 3 |
+
export SECRET_VALUE=$(cat /run/secrets/TOKEN) && \
|
| 4 |
+
echo "获取到的密钥长度为: ${#SECRET_VALUE}"
|
| 5 |
RUN git clone https://subjectid1:$TOKEN@github.com/subjectid1/dms.git
|