forked from phpearth/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7.0-cli.Dockerfile
More file actions
64 lines (56 loc) · 1.8 KB
/
7.0-cli.Dockerfile
File metadata and controls
64 lines (56 loc) · 1.8 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
FROM alpine:3.7
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 CLI 7.0, additional PHP extensions, 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.0
# When using Composer, disable the warning about running commands as root/super user
ENV COMPOSER_ALLOW_SUPERUSER=1
# Persistent runtime dependencies
ARG DEPS="\
php7.0 \
php7.0-phar \
php7.0-bcmath \
php7.0-calendar \
php7.0-mbstring \
php7.0-exif \
php7.0-ftp \
php7.0-openssl \
php7.0-zip \
php7.0-sysvsem \
php7.0-sysvshm \
php7.0-sysvmsg \
php7.0-shmop \
php7.0-sockets \
php7.0-zlib \
php7.0-bz2 \
php7.0-curl \
php7.0-simplexml \
php7.0-xml \
php7.0-opcache \
php7.0-dom \
php7.0-xmlreader \
php7.0-xmlwriter \
php7.0-tokenizer \
php7.0-ctype \
php7.0-session \
php7.0-fileinfo \
php7.0-iconv \
php7.0-json \
php7.0-posix \
curl \
ca-certificates \
"
# 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.7" >> /etc/apk/repositories \
&& apk add --no-cache $DEPS
CMD ["php", "-a"]