-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
25 lines (19 loc) · 793 Bytes
/
Dockerfile
File metadata and controls
25 lines (19 loc) · 793 Bytes
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
FROM phusion/baseimage:0.9.17
MAINTAINER Vladimir Shulyak <vladimir@shulyak.net>
RUN add-apt-repository ppa:nginx/stable && \
apt-get update && \
apt-get install -y --force-yes nginx=1.8.* && \
rm /etc/nginx/sites-enabled/default && \
mkdir /etc/service/nginx && \
mkdir /etc/nginx/conf.mount
# Nginx service
ADD run_nginx.sh /etc/service/nginx/run
ADD /service.conf /etc/nginx/conf.mount/service.conf
# nginx gotta be in foreground
RUN echo "daemon off;" >> /etc/nginx/nginx.conf && \
sed -i '/ sendfile on;/a client_max_body_size 100m;' /etc/nginx/nginx.conf && \
chmod 755 /etc/service/nginx/run && \
apt-get clean && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
VOLUME ["/etc/nginx/certs", "/etc/nginx/conf.mount"]
EXPOSE 80
EXPOSE 443