2e4f665fa5
* second try at using npm5 * use npm 5 in travis * build client only in production
22 lines
536 B
Plaintext
22 lines
536 B
Plaintext
FROM node:boron
|
|
|
|
# Upgrade NPM to v5
|
|
RUN npm install -g npm@5
|
|
# Install global packages
|
|
RUN npm install -g gulp grunt-cli bower mocha
|
|
|
|
# Clone Habitica repo and install dependencies
|
|
RUN mkdir -p /usr/src/habitrpg
|
|
WORKDIR /usr/src/habitrpg
|
|
RUN git clone --branch v3.111.5 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
|
|
RUN npm install
|
|
RUN bower install --allow-root
|
|
RUN gulp build:prod --force
|
|
|
|
# Create Build dir
|
|
RUN mkdir -p ./website/build
|
|
|
|
# Start Habitica
|
|
EXPOSE 3000
|
|
CMD ["node", "./website/transpiled-babel/index.js"]
|