| ADD alpine-minirootfs-3.22.2-x86_64.tar.gz / # buildkit |
| CMD ["/bin/sh"] |
| LABEL maintainer=JulianPrieber |
| LABEL description=LinkStack Docker |
| EXPOSE [443/tcp 80/tcp] |
| RUN /bin/sh -c apk --no-cache --update add apache2 apache2-ssl curl php83-apache2 php83-bcmath php83-bz2 php83-calendar php83-common php83-ctype php83-curl php83-dom php83-fileinfo php83-gd php83-iconv php83-json php83-mbstring php83-mysqli php83-mysqlnd php83-openssl php83-pdo_mysql php83-pdo_pgsql php83-pdo_sqlite php83-phar php83-session php83-xml php83-tokenizer php83-zip php83-xmlwriter php83-redis tzdata && mkdir /htdocs # buildkit |
| COPY linkstack /htdocs # buildkit |
| COPY configs/apache2/httpd.conf /etc/apache2/httpd.conf # buildkit |
| COPY configs/apache2/ssl.conf /etc/apache2/conf.d/ssl.conf # buildkit |
| COPY configs/php/php.ini /etc/php83/conf.d/40-custom.ini # buildkit |
| RUN /bin/sh -c chown apache:apache /etc/ssl/apache2/server.pem # buildkit |
| RUN /bin/sh -c chown apache:apache /etc/ssl/apache2/server.key # buildkit |
| RUN /bin/sh -c chown -R apache:apache /htdocs # buildkit |
| RUN /bin/sh -c find /htdocs -type d -print0 | xargs -0 chmod 0755 # buildkit |
| RUN /bin/sh -c find /htdocs -type f -print0 | xargs -0 chmod 0644 # buildkit |
| COPY --chmod=0755 docker-entrypoint.sh /usr/local/bin/ # buildkit |
| RUN /bin/sh -c chmod -R 755 /etc/php83 && chown -R apache:apache /etc/php83 # buildkit |
| USER apache:apache |
| HEALTHCHECK &{["CMD-SHELL" "curl -f http://localhost -A \"HealthCheck\" || exit 1"] "0s" "0s" "0s" "0s" '\x00'} |
| WORKDIR /htdocs |
| CMD ["docker-entrypoint.sh"] |