Skip to content
This repository was archived by the owner on Mar 24, 2022. It is now read-only.

Commit 9f8ba39

Browse files
committed
move $DEPS out of runtime ENV
1 parent 836b2ee commit 9f8ba39

35 files changed

+280
-210
lines changed

docker/7.0-apache.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.0
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="php7.0 \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
php7.0 \
2324
php7.0-phar \
2425
php7.0-bcmath \
2526
php7.0-calendar \
@@ -53,7 +54,8 @@ ENV \
5354
curl \
5455
ca-certificates \
5556
runit \
56-
apache2"
57+
apache2 \
58+
"
5759

5860
# PHP.earth Alpine repository for better developer experience
5961
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.0-cgi.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.0
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="php7.0 \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
php7.0 \
2324
php7.0-phar \
2425
php7.0-bcmath \
2526
php7.0-calendar \
@@ -52,7 +53,8 @@ ENV \
5253
php7.0-cgi \
5354
curl \
5455
ca-certificates \
55-
runit"
56+
runit \
57+
"
5658

5759
# PHP.earth Alpine repository for better developer experience
5860
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.0-cli.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.0
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="php7.0 \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
php7.0 \
2324
php7.0-phar \
2425
php7.0-bcmath \
2526
php7.0-calendar \
@@ -50,7 +51,8 @@ ENV \
5051
php7.0-json \
5152
php7.0-posix \
5253
curl \
53-
ca-certificates"
54+
ca-certificates \
55+
"
5456

5557
# PHP.earth Alpine repository for better developer experience
5658
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.0-lighttpd.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.0
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="lighttpd \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
lighttpd \
2324
php7.0 \
2425
php7.0-phar \
2526
php7.0-bcmath \
@@ -53,7 +54,8 @@ ENV \
5354
php7.0-fpm \
5455
curl \
5556
ca-certificates \
56-
runit"
57+
runit \
58+
"
5759

5860
# PHP.earth Alpine repository for better developer experience
5961
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.0-litespeed.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.0
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="curl \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
curl \
2324
ca-certificates \
2425
runit \
2526
php7.0 \
@@ -53,7 +54,8 @@ ENV \
5354
php7.0-json \
5455
php7.0-posix \
5556
php7.0-litespeed \
56-
litespeed"
57+
litespeed \
58+
"
5759

5860
# PHP.earth Alpine repository for better developer experience
5961
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.0-nginx.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.0
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="nginx \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
nginx \
2324
nginx-mod-http-headers-more \
2425
php7.0 \
2526
php7.0-phar \
@@ -54,7 +55,8 @@ ENV \
5455
php7.0-fpm \
5556
curl \
5657
ca-certificates \
57-
runit"
58+
runit \
59+
"
5860

5961
# PHP.earth Alpine repository for better developer experience
6062
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.0.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.0
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="php7.0 \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
php7.0 \
2324
curl \
24-
ca-certificates"
25+
ca-certificates \
26+
"
2527

2628
# PHP.earth Alpine repository for better developer experience
2729
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.1-apache.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.1
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="php7.1 \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
php7.1 \
2324
php7.1-phar \
2425
php7.1-bcmath \
2526
php7.1-calendar \
@@ -53,7 +54,8 @@ ENV \
5354
curl \
5455
ca-certificates \
5556
runit \
56-
apache2"
57+
apache2 \
58+
"
5759

5860
# PHP.earth Alpine repository for better developer experience
5961
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.1-cgi.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.1
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="php7.1 \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
php7.1 \
2324
php7.1-phar \
2425
php7.1-bcmath \
2526
php7.1-calendar \
@@ -52,7 +53,8 @@ ENV \
5253
php7.1-cgi \
5354
curl \
5455
ca-certificates \
55-
runit"
56+
runit \
57+
"
5658

5759
# PHP.earth Alpine repository for better developer experience
5860
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.1-cli.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.1
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="php7.1 \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
php7.1 \
2324
php7.1-phar \
2425
php7.1-bcmath \
2526
php7.1-calendar \
@@ -50,7 +51,8 @@ ENV \
5051
php7.1-json \
5152
php7.1-posix \
5253
curl \
53-
ca-certificates"
54+
ca-certificates \
55+
"
5456

5557
# PHP.earth Alpine repository for better developer experience
5658
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.1-lighttpd.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.1
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="lighttpd \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
lighttpd \
2324
php7.1 \
2425
php7.1-phar \
2526
php7.1-bcmath \
@@ -53,7 +54,8 @@ ENV \
5354
php7.1-fpm \
5455
curl \
5556
ca-certificates \
56-
runit"
57+
runit \
58+
"
5759

5860
# PHP.earth Alpine repository for better developer experience
5961
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.1-litespeed.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.1
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="curl \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
curl \
2324
ca-certificates \
2425
runit \
2526
php7.1 \
@@ -53,7 +54,8 @@ ENV \
5354
php7.1-json \
5455
php7.1-posix \
5556
php7.1-litespeed \
56-
litespeed"
57+
litespeed \
58+
"
5759

5860
# PHP.earth Alpine repository for better developer experience
5961
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.1-nginx.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.1
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="nginx \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
nginx \
2324
nginx-mod-http-headers-more \
2425
php7.1 \
2526
php7.1-phar \
@@ -54,7 +55,8 @@ ENV \
5455
php7.1-fpm \
5556
curl \
5657
ca-certificates \
57-
runit"
58+
runit \
59+
"
5860

5961
# PHP.earth Alpine repository for better developer experience
6062
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

docker/7.1.Dockerfile

+8-6
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
1515
# PHP_INI_DIR to be symmetrical with official php docker image
1616
ENV PHP_INI_DIR /etc/php/7.1
1717

18-
ENV \
19-
# When using Composer, disable the warning about running commands as root/super user
20-
COMPOSER_ALLOW_SUPERUSER=1 \
21-
# Persistent runtime dependencies
22-
DEPS="php7.1 \
18+
# When using Composer, disable the warning about running commands as root/super user
19+
ENV COMPOSER_ALLOW_SUPERUSER=1
20+
21+
# Persistent runtime dependencies
22+
ARG DEPS="\
23+
php7.1 \
2324
curl \
24-
ca-certificates"
25+
ca-certificates \
26+
"
2527

2628
# PHP.earth Alpine repository for better developer experience
2729
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub

0 commit comments

Comments
 (0)