[add] mono

This commit is contained in:
Andy Bunce 2023-01-10 12:23:59 +00:00
parent db5defd64d
commit ebc53109d4
3 changed files with 42 additions and 0 deletions

30
mono/Dockerfile Normal file
View File

@ -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" ]

11
mono/docker-compose.yml Normal file
View File

@ -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"

1
mono/readme.md Normal file
View File

@ -0,0 +1 @@
Based on https://github.com/TheDen/moneroocean-xmrig-docker