-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDockerfile
27 lines (21 loc) · 898 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
FROM ruby:2.3.1
MAINTAINER Leandro Di Tommaso <[email protected]>
ENV DEBIAN_FRONTEND noninteractive
RUN apt-get update && \
apt-get install --no-install-recommends -qy \
apache2-utils \
nginx-extras \
nodejs \
sudo && \
apt-get clean && \
rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
ADD nginx.conf /etc/nginx/
ADD default.conf /etc/nginx/conf.d/
ADD ./generate-html.sh /bin/
ADD ./entrypoint.sh /bin/
RUN mkdir /data && \
rm /etc/nginx/sites-enabled/default && \
chmod +x /bin/generate-html.sh && \
chmod +x /bin/entrypoint.sh
EXPOSE "80"
ENTRYPOINT ["/bin/entrypoint.sh"]