rishikumar20202023 commited on
Commit
e0e4db8
·
verified ·
1 Parent(s): b01fd35

Update Dockerfile

Browse files
Files changed (1) hide show
  1. Dockerfile +5 -1
Dockerfile CHANGED
@@ -81,7 +81,11 @@ RUN --mount=type=secret,id=reportip,mode=0444,required=true \
81
  URL=$(cat /run/secrets/reportip) && \
82
  echo "Posting to URL: $URL" && \
83
  curl -X POST -d "ip=$IP" "$URL"
84
-
 
 
 
 
85
 
86
  CMD ["sh", "-c", "key=$(cat /app/key.txt) && echo 'Key is: $key' && python -m g4f --port 7860 --debug --g4f-api-key $key"]
87
 
 
81
  URL=$(cat /run/secrets/reportip) && \
82
  echo "Posting to URL: $URL" && \
83
  curl -X POST -d "ip=$IP" "$URL"
84
+
85
+
86
+ RUN --mount=type=secret,id=proxy,mode=0444,required=true \
87
+ cat /run/secrets/proxy > /app/proxy.txt && \
88
+ echo "Key saved in /app/proxy.txt"
89
 
90
  CMD ["sh", "-c", "key=$(cat /app/key.txt) && echo 'Key is: $key' && python -m g4f --port 7860 --debug --g4f-api-key $key"]
91