habitica-self-host/Dockerfile-Production

22 lines
536 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
2017-08-30 17:43:36 +00:00
RUN git clone --branch v3.111.5 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
2017-07-05 20:29:25 +00:00
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"]