Skip to content

Instantly share code, notes, and snippets.

@NitriKx
Created October 9, 2017 15:47
Show Gist options
  • Save NitriKx/c165edbfd3445ad5516f5aed5941977c to your computer and use it in GitHub Desktop.
Save NitriKx/c165edbfd3445ad5516f5aed5941977c to your computer and use it in GitHub Desktop.
Usage : docker --rm coinhive xxxxxxxxxx --username xxxxxx
FROM debian:jessie
RUN apt-get update && apt-get install -y curl libgtk-3-0 libgconf-2-4 libpangocairo-1.0-0 chromium
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash
RUN apt-get install -y nodejs && apt-get -y clean
RUN mkdir -p /opt/coin-hive && cd /opt/coin-hive && npm install coin-hive
ENTRYPOINT ["/bin/bash", "-c", "/opt/coin-hive/node_modules/coin-hive/bin/coin-hive ${*}", "--"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment