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