habitica/Dockerfile

20 lines
490 B
Text
Raw Normal View History

FROM node:boron
2015-12-09 21:23:47 +00:00
# Install global packages
RUN npm install -g gulp grunt-cli bower mocha
2015-12-09 21:23:47 +00:00
# Clone Habitica repo and install dependencies
RUN mkdir -p /usr/src/habitrpg
WORKDIR /usr/src/habitrpg
RUN git clone --branch v3.99.0 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
RUN npm install
RUN bower install --allow-root
RUN gulp build:prod --force
2015-12-09 21:23:47 +00:00
# Create Build dir
RUN mkdir -p ./website/build
2015-12-09 21:23:47 +00:00
# Start Habitica
EXPOSE 3000
CMD ["node", "./website/transpiled-babel/index.js"]