Update Dockerfile
Browse files- 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"]
|