Archived
1
0
Fork 0
This repository has been archived on 2024-01-27. You can view files and clone it, but cannot push or open issues or pull requests.
dockerfiles/aap/Dockerfile
2021-03-27 18:36:12 +01:00

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 \
php7 \
php7-apache2 \
php7-apcu \
php7-curl \
php7-ctype \
php7-dom \
php7-exif \
php7-fileinfo \
php7-gd \
php7-gmp \
php7-iconv \
php7-json \
php7-mbstring \
php7-opcache \
php7-openssl \
php7-posix \
php7-pdo \
php7-pdo_mysql \
php7-pdo_sqlite \
php7-session \
php7-simplexml \
php7-xml \
php7-zip \
php7-zlib
## Configure apache
COPY assets/php.ini /etc/php7/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