-
Notifications
You must be signed in to change notification settings - Fork 3
/
Dockerfile
63 lines (48 loc) · 1.19 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Use the base CentOS image. If systemd is required in the future, change to 'creativeux/centos-base-systemd'
FROM centos:7
MAINTAINER Aaron Stone <[email protected]>
# Install the EPEL repository
RUN yum -y install \
epel-release
# Install core RPMs
RUN yum -y install \
tar \
bzip2
# Install required developer tools
RUN yum -y install \
make \
gcc \
git
# Install node & npm and upgrade to desired versions.
RUN yum -y install \
nodejs \
npm && \
npm install -g n && \
n 0.12.0 && \
npm install -g [email protected]
# Install ruby
RUN yum -y install ruby \
ruby-devel \
rubygems
# Install compass
RUN gem install compass
# Install required libs
RUN yum -y install \
libpng-devel
# Install Grunt and Bower
RUN npm install -g \
grunt-cli \
bower
# Clean up
RUN yum clean all && \
npm cache clean -f
# Create a static file serve folder
RUN mkdir /var/www
# Execute the commands in the file serve folder
WORKDIR /var/www
# Open port 9000 for app, 35729 for livereload, and 22 for SSH
EXPOSE 9000 35729 22
# Expose our web root and log directories log.
VOLUME ["/vagrant", "/var/www", "/var/log", "/var/run"]
COPY ./config/build-serve.sh /
ENTRYPOINT ["/build-serve.sh"]