mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-04-14 19:56:23 +00:00
Added docker production file (#8846)
* Added docker production file * Added tag clone * Removed docker prod
This commit is contained in:
parent
d3d221dccb
commit
5b7c7b77c8
2 changed files with 21 additions and 20 deletions
|
|
@ -6,7 +6,7 @@ RUN npm install -g gulp grunt-cli bower mocha
|
||||||
# Clone Habitica repo and install dependencies
|
# Clone Habitica repo and install dependencies
|
||||||
RUN mkdir -p /usr/src/habitrpg
|
RUN mkdir -p /usr/src/habitrpg
|
||||||
WORKDIR /usr/src/habitrpg
|
WORKDIR /usr/src/habitrpg
|
||||||
RUN git clone --branch v3.99.0 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
|
RUN git clone https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN bower install --allow-root
|
RUN bower install --allow-root
|
||||||
|
|
||||||
|
|
@ -6,13 +6,14 @@ RUN npm install -g gulp grunt-cli bower mocha
|
||||||
# Clone Habitica repo and install dependencies
|
# Clone Habitica repo and install dependencies
|
||||||
RUN mkdir -p /usr/src/habitrpg
|
RUN mkdir -p /usr/src/habitrpg
|
||||||
WORKDIR /usr/src/habitrpg
|
WORKDIR /usr/src/habitrpg
|
||||||
RUN git clone https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
|
RUN git clone --branch v3.99.0 https://github.com/HabitRPG/habitica.git /usr/src/habitrpg
|
||||||
RUN npm install
|
RUN npm install
|
||||||
RUN bower install --allow-root
|
RUN bower install --allow-root
|
||||||
|
RUN gulp build:prod --force
|
||||||
|
|
||||||
# Create Build dir
|
# Create Build dir
|
||||||
RUN mkdir -p ./website/build
|
RUN mkdir -p ./website/build
|
||||||
|
|
||||||
# Start Habitica
|
# Start Habitica
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
CMD ["npm", "start"]
|
CMD ["node", "./website/transpiled-babel/index.js"]
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue