habitica/Dockerfile

22 lines
519 B
Text
Raw Normal View History

2017-07-05 20:29:25 +00:00
FROM node:boron
# Upgrade NPM to v5
RUN npm install -g npm@5
2017-07-05 20:29:25 +00:00
# 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 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
RUN cp config.json.example config.json
2017-07-05 20:29:25 +00:00
RUN npm install
RUN bower install --allow-root
# Create Build dir
RUN mkdir -p ./website/build
# Start Habitica
EXPOSE 3000
CMD ["npm", "start"]