Spaces:
Paused
Paused
Create Dockerfile
Browse files- Dockerfile +30 -0
Dockerfile
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM docker.io/traffmonetizer/cli_v2 AS traffmonetizer
|
| 2 |
+
FROM docker.io/earnfm/earnfm-client AS earnfm
|
| 3 |
+
FROM docker.io/proxybase/proxybase AS proxybase
|
| 4 |
+
FROM docker.io/packetshare/packetshare AS packetshare
|
| 5 |
+
FROM ubuntu
|
| 6 |
+
SHELL ["bash", "-c"]
|
| 7 |
+
WORKDIR /home/ubuntu
|
| 8 |
+
COPY --from=traffmonetizer /app/Cli .
|
| 9 |
+
COPY --from=earnfm /app/earnfm_example .
|
| 10 |
+
COPY --from=proxybase /app/ProxyBaseCLI .
|
| 11 |
+
COPY --from=packetshare /app/Packetshare .
|
| 12 |
+
COPY node.db server.py .
|
| 13 |
+
RUN <<EOF
|
| 14 |
+
apt update
|
| 15 |
+
apt install -y --no-install-recommends dotnet-sdk-8.0 tini moreutils python3-aiohttp python3-uvloop jq curl python3-colorama python3-requests python3-packaging python3-ping3
|
| 16 |
+
su - ubuntu -c 'dotnet new tool-manifest'
|
| 17 |
+
dotnet tool install sfextract
|
| 18 |
+
dotnet sfextract Cli -o .
|
| 19 |
+
jq '.runtimeOptions.frameworks = .runtimeOptions.includedFrameworks | del(.runtimeOptions.includedFrameworks)' Cli.runtimeconfig.json | sponge Cli.runtimeconfig.json
|
| 20 |
+
rm -rf Cli System.*.dll netstandard.dll Microsoft.*.dll
|
| 21 |
+
curl https://raw.githubusercontent.com/extremecoders-re/pyinstxtractor/refs/heads/master/pyinstxtractor.py | python3 - ProxyBaseCLI
|
| 22 |
+
cp ProxyBaseCLI_extracted/main.pyc ProxyBaseCLI_extracted/PYZ.pyz_extracted/{config,connection,exceptions,handlers,log,session,update,utils,varint}.pyc .
|
| 23 |
+
rm -rf ProxyBaseCLI ProxyBaseCLI_extracted
|
| 24 |
+
curl $(curl https://releases.bitping.com/bitpingd/update.json | jq -r .platforms[\"linux-x86_64\"].url) | tar -xz
|
| 25 |
+
mkdir -p .bitpingd
|
| 26 |
+
mv node.db .bitpingd
|
| 27 |
+
chown -R ubuntu:ubuntu .bitpingd
|
| 28 |
+
EOF
|
| 29 |
+
USER ubuntu
|
| 30 |
+
ENTRYPOINT ["tini", "--", "python3", "server.py"]
|