[add] mono
This commit is contained in:
parent
db5defd64d
commit
ebc53109d4
30
mono/Dockerfile
Normal file
30
mono/Dockerfile
Normal 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
11
mono/docker-compose.yml
Normal 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
1
mono/readme.md
Normal file
@ -0,0 +1 @@
|
|||||||
|
Based on https://github.com/TheDen/moneroocean-xmrig-docker
|
Loading…
Reference in New Issue
Block a user