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

56 lines
1.2 KiB
Text
Raw Normal View History

2017-12-09 16:46:17 +01:00
FROM alpine:latest
2021-03-27 18:36:12 +01:00
LABEL maintainer "J. Elfring <code@elfring.ms>"
2017-12-09 16:46:17 +01:00
## Install prereqs
RUN apk add --update --no-cache \
curl \
git \
mc \
2022-11-27 13:09:33 +01:00
php81 \
php81-apache2 \
php81-apcu \
php81-curl \
php81-ctype \
php81-dom \
php81-exif \
php81-fileinfo \
php81-gd \
php81-gmp \
php81-iconv \
php81-json \
php81-mbstring \
php81-opcache \
php81-openssl \
php81-posix \
php81-pdo \
php81-pdo_mysql \
php81-pdo_sqlite \
php81-session \
php81-simplexml \
php81-xml \
php81-zip \
php81-zlib
2017-12-09 16:46:17 +01:00
## Configure apache
COPY assets/php8.ini /etc/php8/php.ini
2017-12-09 16:46:17 +01:00
COPY assets/httpd.conf /etc/apache2/httpd.conf
RUN chown apache:apache /run/apache2
2017-12-09 16:46:17 +01:00
## 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
2017-12-09 16:46:17 +01:00
VOLUME /var/www/localhost
EXPOSE 8080
WORKDIR /var/www/localhost
CMD httpd -D FOREGROUND