1FROM alpine
2RUN apk add nginx
3RUN mkdir -p /run/nginx
4ADD default.conf /etc/nginx/http.d/default.conf
5ADD *.key /etc/ssl/private/
6ADD *.pem /etc/ssl/private/
7ADD *.crt /etc/ssl/certs/
8WORKDIR /var/www/localhost/htdocs
9COPY entrypoint.sh /usr/local/bin
10RUN chmod +x /usr/local/bin/entrypoint.sh
11ENTRYPOINT ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
12#EXPOSE 80
13EXPOSE 443
14CMD ["/bin/sh", "-c", "nginx -g 'daemon off;'; nginx -s reload;"]