mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 11:46:23 +00:00
* move emails images to website/static/emails and remove old files * remove old client tests * remove more files * add sprites back * cleanup gulp * cleanup gulp * remove old files * more fixes * pin bootstrap-vue * disable old test * remove old tasks * fix apidoc
21 lines
666 B
Text
21 lines
666 B
Text
FROM node:boron
|
|
|
|
# Upgrade NPM to v5 (Yarn is needed because of this bug https://github.com/npm/npm/issues/16807)
|
|
# The used solution is suggested here https://github.com/npm/npm/issues/16807#issuecomment-313591975
|
|
RUN yarn global add npm@5
|
|
# Install global packages
|
|
RUN npm install -g gulp mocha
|
|
|
|
# Clone Habitica repo and install dependencies
|
|
RUN mkdir -p /usr/src/habitrpg
|
|
WORKDIR /usr/src/habitrpg
|
|
RUN git clone --branch v4.0.3 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
|
|
RUN npm install
|
|
RUN gulp build:prod --force
|
|
|
|
# Create Build dir
|
|
RUN mkdir -p ./website/build
|
|
|
|
# Start Habitica
|
|
EXPOSE 3000
|
|
CMD ["node", "./website/transpiled-babel/index.js"]
|