Skip to content

Instantly share code, notes, and snippets.

@aaroncox
Created July 4, 2019 06:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aaroncox/70328a90b4d36463b1d3055cff39eaa5 to your computer and use it in GitHub Desktop.
Save aaroncox/70328a90b4d36463b1d3055cff39eaa5 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 eos-voter build
FROM ubuntu:16.04
RUN rm /bin/sh && ln -s /bin/bash /bin/sh
RUN apt-get update \
&& apt-get install -y build-essential g++ gcc git curl python make libusb-dev libudev-dev libusb-1.0-0-dev \
&& apt-get -y autoclean
ENV NVM_DIR /usr/local/nvm
ENV NODE_VERSION 8.16.0
RUN curl --silent -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.2/install.sh | bash
RUN source $NVM_DIR/nvm.sh \
&& nvm install $NODE_VERSION \
&& nvm alias default $NODE_VERSION \
&& nvm use default
ENV NODE_PATH $NVM_DIR/v$NODE_VERSION/lib/node_modules
ENV PATH $NVM_DIR/versions/node/v$NODE_VERSION/bin:$PATH
RUN useradd -ms /bin/bash eos-voter
USER eos-voter
WORKDIR /home/eos-voter
RUN git clone https://github.com/greymass/eos-voter.git /home/eos-voter/src
RUN cd /home/eos-voter/src \
&& npm install --loglevel verbose \
&& cd app \
&& npm install --loglevel verbose \
&& cd .. \
&& npm run package-linux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment