diff --git a/docker/Dockerfile b/docker/Dockerfile new file mode 100644 index 0000000000..33332bf7d6 --- /dev/null +++ b/docker/Dockerfile @@ -0,0 +1,28 @@ +# This is a comment +FROM ubuntu:16.04 +MAINTAINER Josh Wilson +# Replace shell with bash so we can source files +RUN rm /bin/sh && ln -s /bin/bash /bin/sh +# make sure apt is up to date +RUN apt-get update --fix-missing +RUN apt-get install -y curl +RUN apt-get install -y build-essential libssl-dev + + +ENV NVM_DIR /usr/local/nvm +ENV NODE_VERSION 6.3.1 +# RUN sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" +# RUN curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.31.7/install.sh | bash +# RUN command -v nvm +# # RUN nvm install 6.3.1 + + +# Install nvm with node and npm +RUN curl https://raw.githubusercontent.com/creationix/nvm/v0.31.7/install.sh | bash \ + && 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 \ No newline at end of file diff --git a/package.json b/package.json index 89a011c4cb..ad976af9fb 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "asar": "^0.11.0", "browserify": "^13.0.1", "chai": "^3.5.0", - "electron-builder": "~5.30.0", + "electron-builder": "6.5.2", "electron": "1.3.3", "fs-jetpack": "^0.9.0", "gulp": "^3.9.0",