Created
July 4, 2019 06:09
-
-
Save aaroncox/70328a90b4d36463b1d3055cff39eaa5 to your computer and use it in GitHub Desktop.
Ubuntu 16.04 eos-voter build
This file contains hidden or 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
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