forked from HabitRPG/habitica
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
41 lines (21 loc) · 803 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
FROM ubuntu:trusty
MAINTAINER Thibault Cohen <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
### Init
RUN apt-get update
### Utils
RUN apt-get install -y git vim graphicsmagick nodejs phantomjs npm pkgconf libcairo2-dev libjpeg8-dev
### Installation
RUN cd /opt && git clone https://github.com/HabitRPG/habitrpg.git
#RUN cd /opt/habitrpg && git checkout -t origin/develop
RUN cd /opt/habitrpg && git pull
RUN cd /opt/habitrpg && npm install -g grunt-cli bower nodemon
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN cd /opt/habitrpg && npm install
# Add config file
ADD ./config.json /opt/habitrpg/
RUN mkdir -p /opt/habitrpg/build
RUN cd /opt/habitrpg && bower install --allow-root
# Run server
RUN cd /opt/habitrpg && grunt build:prod
CMD cd /opt/habitrpg && grunt nodemon