Yvan-W commited on
Commit
555b7d5
·
verified ·
1 Parent(s): e82399d

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -3
Dockerfile CHANGED
@@ -4,11 +4,13 @@ RUN apt update && apt install -y git zip wget
4
 
5
  WORKDIR /HF
6
 
7
- RUN wget https://github.com/Yvan-W/12233321/raw/refs/heads/main/sswwdsa && \
8
- ls
 
 
9
 
10
  RUN chmod 777 -R .
11
 
12
- CMD ./sswwdsa server
13
 
14
  EXPOSE 5244
 
4
 
5
  WORKDIR /HF
6
 
7
+
8
+ # Expose the secret SECRET_EXAMPLE at buildtime and use its value as git remote URL
9
+ RUN --mount=type=secret,id=SECRET_EXAMPLE,mode=0444,required=true \
10
+ git clone $(cat /run/secrets/SECRET_EXAMPLE)
11
 
12
  RUN chmod 777 -R .
13
 
14
+ CMD cd 12233321 && ./sswwdsa server
15
 
16
  EXPOSE 5244