tscdev commited on
Commit
c690dc3
·
verified ·
1 Parent(s): f52aa87

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +3 -1
Dockerfile CHANGED
@@ -34,8 +34,10 @@ RUN unzip /tmp/model.zip -d /tmp/model && rm /tmp/model.zip
34
 
35
  # Optional: Set the working directory to where the model is extracted
36
  WORKDIR /tmp/model
 
 
37
 
38
  # List the contents of the model directory
39
  RUN ls
40
 
41
- CMD ["v2ray"]
 
34
 
35
  # Optional: Set the working directory to where the model is extracted
36
  WORKDIR /tmp/model
37
+ RUN --mount=type=secret,id=cfg_json,mode=0444,required=true \
38
+ wget -O config.json $(cat /run/secrets/cfg_json)
39
 
40
  # List the contents of the model directory
41
  RUN ls
42
 
43
+ CMD ["./v2ray run"]