Skip to content

Instantly share code, notes, and snippets.

@peterzen
Created June 20, 2017 18:16
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 peterzen/93e6b81842c29231268779b44b373471 to your computer and use it in GitHub Desktop.
Save peterzen/93e6b81842c29231268779b44b373471 to your computer and use it in GitHub Desktop.
copay-docker-builder
#copay-builder
FROM centos:latest
LABEL description="Copay builder image"
LABEL version="3.5.0"
LABEL maintainer "peter@froggle.org"
ENV NODE_VERSION v7.10.0
ENV TERM linux
ENV USER build
RUN yum install -y git
RUN adduser build
# create directory to get source from
RUN mkdir /src && \
chown $USER /src
# switch user
USER $USER
WORKDIR /home/$USER
ENV HOME /home/$USER
ENV NVM_DIR $HOME/.nvm
# install & configure NodeJS
RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.1/install.sh | bash && \
. $NVM_DIR/nvm.sh && \
nvm install $NODE_VERSION && \
nvm use $NODE_VERSION && \
nvm alias default $NODE_VERSION
WORKDIR /src
# build copay
CMD ["./webwallet-build.sh"]
#!/bin/bash
. $HOME/.nvm/nvm.sh && \
npm run apply:decred && \
node_modules/.bin/cordova telemetry off && \
npm run final:www
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment