subjectid commited on
Commit
a3c6e68
·
verified ·
1 Parent(s): 13822f0

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -2
Dockerfile CHANGED
@@ -1,4 +1,5 @@
1
  FROM gradle:8.8-jdk17 AS build
2
- ARG GITLAB_ACCESS_TOKEN
3
- RUN git config --global user.name "subjectid1"
 
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