forked from mozilla/BrowserQuest
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
18 lines (7 loc) · 1.17 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
FROM ubuntu:14.04
EXPOSE 8000 80
RUN apt-get update && export DEBIAN_FRONTEND=noninteractive && apt-get -yq install git curl python build-essential libssl-dev git-core &&curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash &&export NVM_DIR="$HOME/.nvm" &&[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&nvm install 0.6.8 &&apt-get -yq install npm &&nvm install 10.23.0 &&npm install [email protected] [email protected] [email protected] [email protected] [email protected] [email protected] @gitterhq/websocket-server &&mv node_modules/@gitterhq/websocket-server node_modules/websocket-server &&rm -r node_modules/@gitterhq &&git clone https://github.com/ColoradoStark/BrowserQuest.git
WORKDIR /BrowserQuest/client
RUN npm config set strict-ssl false &&npm install --global [email protected] &&curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.37.0/install.sh | bash &&export NVM_DIR="$HOME/.nvm" &&[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" &&[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" &&nvm install 0.6.8
WORKDIR /BrowserQuest
RUN node server/js/main.js &