| ADD alpine-minirootfs-3.22.1-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| LABEL author=mh@mh3k.net |
| RUN /bin/sh -c apk add --no-cache apache2 apache2-ssl apache2-utils certbot certbot-apache bash vim openssl curl # buildkit |
| ENV LANG=en_US.utf8 |
| RUN /bin/sh -c mkdir -p /var/www/html mkdir -p /etc/apache2/sites-available mkdir -p /etc/apache2/sites-enabled mkdir -p /etc/letsencrypt # buildkit |
| EXPOSE map[80/tcp:{}] |
| EXPOSE map[443/tcp:{}] |
| COPY apache.conf /etc/apache2/httpd.conf # buildkit |
| COPY vhost.conf /etc/apache2/sites-available/default.conf # buildkit |
| COPY ssl.conf /etc/apache2/conf.d/ssl.conf # buildkit |
| COPY entrypoint.sh / # buildkit |
| RUN /bin/sh -c chmod +x /entrypoint.sh # buildkit |
| HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost/ || exit 1"] "30s" "3s" "0s" "0s" '\x00'} |
| ENTRYPOINT ["/entrypoint.sh"] |