-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
34 lines (24 loc) · 843 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
31
32
33
34
FROM nginx:1.15
RUN apt-get update \
&& apt-get install -y htop nano git geoip-database libgeoip1
ADD ./nginx.conf /etc/nginx/
ADD ./expires.conf /etc/nginx/
ADD ./cross-domain-fonts.conf /etc/nginx/
ADD ./cloudflare.conf /etc/nginx/
ADD ./php-fpm.conf /etc/nginx/
ADD ./php-fpm-index.conf /etc/nginx/
ADD ./ssl-params.conf /etc/nginx/
ADD ./deny-bots.conf /etc/nginx/
ADD ./auth-basic.conf /etc/nginx/
ADD ./.htpasswd /etc/nginx/
ADD ./conf.d/*.conf /etc/nginx/conf.d/
RUN rm /etc/nginx/conf.d/default.conf
RUN mkdir -p /var/www && chown -R www-data:www-data /var/www
RUN apt-get clean && apt-get autoclean && apt-get autoremove -y
RUN rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
COPY docker-entrypoint.sh /entrypoint.sh
ENTRYPOINT ["sh", "/entrypoint.sh"]
CMD ["nginx", "-g", "daemon off;"]
WORKDIR /var/www
EXPOSE 80
EXPOSE 443