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

57 lines
1.2 KiB
Text
Raw Permalink 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 \
2023-06-02 17:25:56 +02:00
php82 \
php82-apache2 \
php82-apcu \
php82-curl \
php82-ctype \
php82-dom \
php82-exif \
php82-fileinfo \
php82-gd \
php82-gmp \
php82-iconv \
php82-intl \
php82-json \
php82-mbstring \
php82-opcache \
php82-openssl \
php82-posix \
php82-pdo \
php82-pdo_mysql \
php82-pdo_sqlite \
php82-session \
php82-simplexml \
php82-xml \
php82-zip \
php82-zlib
2017-12-09 16:46:17 +01:00
## Configure apache
2023-06-02 17:25:56 +02:00
COPY assets/php82.ini /etc/php82/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