Skip to content

Instantly share code, notes, and snippets.

@andrewnk
Created August 14, 2018 18:24
Show Gist options
  • Save andrewnk/ed057d932f46e9544f73e9b7fcab2d21 to your computer and use it in GitHub Desktop.
Save andrewnk/ed057d932f46e9544f73e9b7fcab2d21 to your computer and use it in GitHub Desktop.
Veldspar Megaminer
# 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