FROM alpine:latest LABEL maintainer "J. Elfring " ## Install prereqs RUN apk add --update --no-cache \ curl \ git \ mc \ php83 \ php83-apache2 \ php83-apcu \ php83-curl \ php83-ctype \ php83-dom \ php83-exif \ php83-fileinfo \ php83-gd \ php83-gmp \ php83-iconv \ php83-intl \ php83-json \ php83-mbstring \ php83-opcache \ php83-openssl \ php83-posix \ php83-pdo \ php83-pdo_mysql \ php83-pdo_sqlite \ php83-session \ php83-simplexml \ php83-xml \ php83-zip \ php83-zlib ## Configure apache COPY assets/php83.ini /etc/php83/php.ini COPY assets/httpd.conf /etc/apache2/httpd.conf RUN chown apache:apache /run/apache2 ## Some customization for running websites RUN chown -R apache:apache /var/www/localhost\ && sed -i 's+apache:x:100:101:apache:/var/www:/sbin/nologin+apache:x:100:101:apache:/var/www/localhost:/sbin/nologin+' /etc/passwd USER apache ENV SERVERADMINMAIL=webmaster@example.com VOLUME /var/www/localhost EXPOSE 8080 WORKDIR /var/www/localhost CMD httpd -D FOREGROUND