forked from phpearth/docker-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path7.0.Dockerfile
More file actions
35 lines (27 loc) · 1.1 KB
/
7.0.Dockerfile
File metadata and controls
35 lines (27 loc) · 1.1 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
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, 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 \
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"]