-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
30 lines (16 loc) · 838 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
# Use CentOS Official image to build it
FROM centos:latest
# My datainfo
MAINTAINER Álvaro Castillo sincorchetes@gmail.com
# Setup dependencies and some tools
RUN dnf install npm bzip2 git fontconfig freetype freetype-devel fontconfig-devel libstdc++ -y
# Copy PhantomJS to webogram
COPY phantomjs-2.1.1-linux-x86_64.tar.bz2 /
# Copy script to run npm after
COPY start-webogram.sh /usr/local/bin/
# Exposing port
EXPOSE 8000
# Launching web apps and some settings up
RUN cd /opt && git clone https://github.com/zhukov/webogram && tar xfv /phantomjs-2.1.1-linux-x86_64.tar.bz2 -C /opt/ && mv /opt/phantomjs-2.1.1-linux-x86_64 /opt/phantomjs && ln -s /opt/phantomjs/bin/phantomjs /usr/bin/phantomjs && cd /opt/webogram && npm install && npm audit fix --force
# Run command as daemon
CMD ["/usr/local/bin/start-webogram.sh"]