Spaces:
Building
Building
Update Dockerfile
Browse files- 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 |
|