2f8186fe24
Pause older image builds
55 lines
1.2 KiB
Docker
55 lines
1.2 KiB
Docker
FROM alpine:latest
|
|
LABEL maintainer "J. Elfring <code@elfring.ms>"
|
|
|
|
## Install prereqs
|
|
RUN apk add --update --no-cache \
|
|
curl \
|
|
git \
|
|
mc \
|
|
php8 \
|
|
php8-apache2 \
|
|
php8-apcu \
|
|
php8-curl \
|
|
php8-ctype \
|
|
php8-dom \
|
|
php8-exif \
|
|
php8-fileinfo \
|
|
php8-gd \
|
|
php8-gmp \
|
|
php8-iconv \
|
|
php8-json \
|
|
php8-mbstring \
|
|
php8-opcache \
|
|
php8-openssl \
|
|
php8-posix \
|
|
php8-pdo \
|
|
php8-pdo_mysql \
|
|
php8-pdo_sqlite \
|
|
php8-session \
|
|
php8-simplexml \
|
|
php8-xml \
|
|
php8-zip \
|
|
php8-zlib
|
|
|
|
## Configure apache
|
|
COPY assets/php8.ini /etc/php8/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
|
|
|
|
|
|
|
|
|
|
|