Created
August 14, 2018 18:24
-
-
Save andrewnk/ed057d932f46e9544f73e9b7fcab2d21 to your computer and use it in GitHub Desktop.
Veldspar Megaminer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# docker build -t megaminer . | |
# docker run -it megaminer megaminer --address <your wallet address> --threads 16 | |
FROM alpine | |
RUN apk update && \ | |
apk add --no-cache git gcc g++ | |
RUN git clone https://github.com/VeldsparCrypto/megaminer.git | |
WORKDIR megaminer | |
RUN gcc -pthread ./src/main.c -o ./megaminer | |
RUN addgroup -g 2000 veldspar && \ | |
adduser -D -u 2000 -G veldspar veldspar && \ | |
chmod +x megaminer && \ | |
cp megaminer /usr/local/bin | |
WORKDIR / | |
RUN rm -fr /megaminer | |
USER veldspar |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment