forked from phpearth/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7.1-apache.Dockerfile
More file actions
74 lines (64 loc) · 2.02 KB
/
7.1-apache.Dockerfile
File metadata and controls
74 lines (64 loc) · 2.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
FROM alpine:3.9
ARG BUILD_DATE
ARG VCS_REF
LABEL org.label-schema.build-date=$BUILD_DATE \
org.label-schema.vcs-url="https://github.com/phpearth/docker-php.git" \
org.label-schema.vcs-ref=$VCS_REF \
org.label-schema.schema-version="1.0" \
org.label-schema.vendor="PHP.earth" \
org.label-schema.name="docker-php" \
org.label-schema.description="Docker For PHP Developers - Docker image with PHP 7.1, Apache, and Alpine" \
org.label-schema.url="https://github.com/phpearth/docker-php"
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.1
# When using Composer, disable the warning about running commands as root/super user
ENV COMPOSER_ALLOW_SUPERUSER=1
# Persistent runtime dependencies
ARG DEPS="\
php7.1 \
php7.1-phar \
php7.1-bcmath \
php7.1-calendar \
php7.1-mbstring \
php7.1-exif \
php7.1-ftp \
php7.1-openssl \
php7.1-zip \
php7.1-sysvsem \
php7.1-sysvshm \
php7.1-sysvmsg \
php7.1-shmop \
php7.1-sockets \
php7.1-zlib \
php7.1-bz2 \
php7.1-curl \
php7.1-simplexml \
php7.1-xml \
php7.1-opcache \
php7.1-dom \
php7.1-xmlreader \
php7.1-xmlwriter \
php7.1-tokenizer \
php7.1-ctype \
php7.1-session \
php7.1-fileinfo \
php7.1-iconv \
php7.1-json \
php7.1-posix \
php7.1-apache2 \
curl \
ca-certificates \
runit \
apache2 \
"
# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
RUN set -x \
&& echo "https://repos.php.earth/alpine/v3.9" >> /etc/apk/repositories \
&& apk add --no-cache $DEPS \
&& mkdir -p /run/apache2 \
&& ln -sf /dev/stdout /var/log/apache2/access.log \
&& ln -sf /dev/stderr /var/log/apache2/error.log
COPY tags/apache /
EXPOSE 80
CMD ["/sbin/runit-wrapper"]