mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-15 21:57:22 +01:00
20 lines
491 B
Plaintext
20 lines
491 B
Plaintext
FROM node:boron
|
|
|
|
# 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.109.0 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"]
|