FROM alpine:3.16 LABEL maintainer="JulianPrieber" LABEL description="LittleLink Custom Docker" # Setup apache and php RUN apk --no-cache --update \ add apache2 \ apache2-ssl \ curl \ php8-apache2 \ php8-bcmath \ php8-bz2 \ php8-calendar \ php8-common \ php8-ctype \ php8-curl \ php8-dom \ php8-gd \ php8-iconv \ php8-mbstring \ php8-mysqli \ php8-mysqlnd \ php8-openssl \ php8-pdo_mysql \ php8-pdo_pgsql \ php8-pdo_sqlite \ php8-phar \ php8-session \ php8-xml \ php8-tokenizer \ php8-zip \ && mkdir /htdocs COPY littlelink-custom /htdocs RUN chown -R apache:apache /htdocs RUN find /htdocs -type d -print0 | xargs -0 chmod 0755 RUN find /htdocs -type f -print0 | xargs -0 chmod 0644 EXPOSE 80 443 ADD docker-entrypoint.sh / HEALTHCHECK CMD wget -q --no-cache --spider localhost ENTRYPOINT ["/docker-entrypoint.sh"]