forked from frandallfarmer/neohabitat
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
47 lines (36 loc) · 1 KB
/
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
42
43
44
45
46
47
# Neoclassical Habitat
#
# VERSION 0.1.0
FROM philcollins/aurora-centos7
# Ensures that the codebase is homed at /neohabitat.
ADD . /neohabitat
# Installs base build dependencies.
RUN yum -y install \
curl \
git \
java-1.8.0-openjdk \
make \
mariadb \
tar \
wget \
which && \
yum clean all
# Installs the Apache Maven Yum repository.
RUN wget http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-apache-maven.repo -O /etc/yum.repos.d/epel-apache-maven.repo
# Installs the Nodesource Yum repository.
RUN curl -sL https://rpm.nodesource.com/setup_6.x | bash -
# Installs MongoDB Yum repository.
RUN curl -sL https://goo.gl/CxNbGr > /etc/yum.repos.d/mongodb-org.3.4.repo
# Installs Node and MongoDB.
RUN yum -y install \
apache-maven \
mongodb-org \
nodejs && \
yum clean all
# Installs Node dependencies.
RUN npm install -g supervisor
# Builds the Neohabitat project.
WORKDIR /neohabitat
RUN rm -rf lib && npm install && ./build
ENTRYPOINT /neohabitat/run
EXPOSE 1337 9000