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

54 lines
1.1 KiB
Text
Raw Normal View History

2017-12-09 16:46:17 +01:00
FROM alpine:latest
LABEL maintainer "J. Elfring <devops@elfrinjo.de>"
## 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 \
2017-12-09 16:46:17 +01:00
php7-gd \
php7-gmp \
php7-json \
php7-mbstring \
php7-opcache \
php7-openssl \
php7-posix \
php7-pdo \
php7-pdo_mysql \
php7-pdo_sqlite \
2017-12-09 16:46:17 +01:00
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
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
VOLUME /var/www/localhost
EXPOSE 8080
WORKDIR /var/www/localhost
CMD httpd -D FOREGROUND