mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-08-04 04:59:40 +00:00
21 lines
536 B
Text
21 lines
536 B
Text
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"]
|