diff --git a/mono/Dockerfile b/mono/Dockerfile new file mode 100644 index 0000000..90b56e0 --- /dev/null +++ b/mono/Dockerfile @@ -0,0 +1,30 @@ +FROM alpine:3 as builder + +SHELL ["/bin/ash", "-eo", "pipefail", "-c"] + +RUN apk add --update --no-cache \ + bash \ + git \ + make \ + cmake \ + libstdc++ \ + gcc \ + g++ \ + automake \ + libtool \ + autoconf \ + linux-headers \ + && git clone --depth=1 "https://github.com/MoneroOcean/xmrig.git" \ + && mkdir xmrig/build \ + && cd xmrig/scripts \ + && ./build_deps.sh \ + && cd ../build \ + && cmake .. -DXMRIG_DEPS=scripts/deps -DBUILD_STATIC=ON \ + && make -j "$(nproc)" + +FROM alpine:3 + +COPY --from=builder /xmrig/build/xmrig /xmrig + +ENTRYPOINT ["/xmrig"] +CMD [ "--help" ] diff --git a/mono/docker-compose.yml b/mono/docker-compose.yml new file mode 100644 index 0000000..0e23511 --- /dev/null +++ b/mono/docker-compose.yml @@ -0,0 +1,11 @@ +version: "3.7" +services: + xmrig: + build: + context: . + dockerfile: Dockerfile + image: xmrig + command: + - "--url=gulf.moneroocean.stream:10128" + - "--user=45yP5PNuaPDZBzmfaVi863991VpHnXVxJghQiRPx7ru27B5ApmVKdYobPQkhe8SMB6cUQiPedNhsNF9rj7vtM9S6S4MWgdE" + - "--rig-id=coreelec" \ No newline at end of file diff --git a/mono/readme.md b/mono/readme.md new file mode 100644 index 0000000..f39c26e --- /dev/null +++ b/mono/readme.md @@ -0,0 +1 @@ +Based on https://github.com/TheDen/moneroocean-xmrig-docker \ No newline at end of file