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

Commit

Permalink
move $DEPS out of runtime ENV
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed May 28, 2019
1 parent 836b2ee commit 9f8ba39
Show file tree
Hide file tree
Showing 35 changed files with 280 additions and 210 deletions.
14 changes: 8 additions & 6 deletions docker/7.0-apache.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.0

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.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 \
Expand Down Expand Up @@ -53,7 +54,8 @@ ENV \
curl \
ca-certificates \
runit \
apache2"
apache2 \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.0-cgi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.0

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.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 \
Expand Down Expand Up @@ -52,7 +53,8 @@ ENV \
php7.0-cgi \
curl \
ca-certificates \
runit"
runit \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.0-cli.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.0

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.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 \
Expand Down Expand Up @@ -50,7 +51,8 @@ ENV \
php7.0-json \
php7.0-posix \
curl \
ca-certificates"
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
Expand Down
14 changes: 8 additions & 6 deletions docker/7.0-lighttpd.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.0

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="lighttpd \
# When using Composer, disable the warning about running commands as root/super user
ENV COMPOSER_ALLOW_SUPERUSER=1

# Persistent runtime dependencies
ARG DEPS="\
lighttpd \
php7.0 \
php7.0-phar \
php7.0-bcmath \
Expand Down Expand Up @@ -53,7 +54,8 @@ ENV \
php7.0-fpm \
curl \
ca-certificates \
runit"
runit \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.0-litespeed.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.0

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="curl \
# When using Composer, disable the warning about running commands as root/super user
ENV COMPOSER_ALLOW_SUPERUSER=1

# Persistent runtime dependencies
ARG DEPS="\
curl \
ca-certificates \
runit \
php7.0 \
Expand Down Expand Up @@ -53,7 +54,8 @@ ENV \
php7.0-json \
php7.0-posix \
php7.0-litespeed \
litespeed"
litespeed \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.0-nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.0

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="nginx \
# When using Composer, disable the warning about running commands as root/super user
ENV COMPOSER_ALLOW_SUPERUSER=1

# Persistent runtime dependencies
ARG DEPS="\
nginx \
nginx-mod-http-headers-more \
php7.0 \
php7.0-phar \
Expand Down Expand Up @@ -54,7 +55,8 @@ ENV \
php7.0-fpm \
curl \
ca-certificates \
runit"
runit \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.0.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.0

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.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"
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
Expand Down
14 changes: 8 additions & 6 deletions docker/7.1-apache.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.1

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.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 \
Expand Down Expand Up @@ -53,7 +54,8 @@ ENV \
curl \
ca-certificates \
runit \
apache2"
apache2 \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.1-cgi.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.1

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.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 \
Expand Down Expand Up @@ -52,7 +53,8 @@ ENV \
php7.1-cgi \
curl \
ca-certificates \
runit"
runit \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.1-cli.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.1

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.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 \
Expand Down Expand Up @@ -50,7 +51,8 @@ ENV \
php7.1-json \
php7.1-posix \
curl \
ca-certificates"
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
Expand Down
14 changes: 8 additions & 6 deletions docker/7.1-lighttpd.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.1

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="lighttpd \
# When using Composer, disable the warning about running commands as root/super user
ENV COMPOSER_ALLOW_SUPERUSER=1

# Persistent runtime dependencies
ARG DEPS="\
lighttpd \
php7.1 \
php7.1-phar \
php7.1-bcmath \
Expand Down Expand Up @@ -53,7 +54,8 @@ ENV \
php7.1-fpm \
curl \
ca-certificates \
runit"
runit \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.1-litespeed.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.1

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="curl \
# When using Composer, disable the warning about running commands as root/super user
ENV COMPOSER_ALLOW_SUPERUSER=1

# Persistent runtime dependencies
ARG DEPS="\
curl \
ca-certificates \
runit \
php7.1 \
Expand Down Expand Up @@ -53,7 +54,8 @@ ENV \
php7.1-json \
php7.1-posix \
php7.1-litespeed \
litespeed"
litespeed \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.1-nginx.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.1

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="nginx \
# When using Composer, disable the warning about running commands as root/super user
ENV COMPOSER_ALLOW_SUPERUSER=1

# Persistent runtime dependencies
ARG DEPS="\
nginx \
nginx-mod-http-headers-more \
php7.1 \
php7.1-phar \
Expand Down Expand Up @@ -54,7 +55,8 @@ ENV \
php7.1-fpm \
curl \
ca-certificates \
runit"
runit \
"

# PHP.earth Alpine repository for better developer experience
ADD https://repos.php.earth/alpine/phpearth.rsa.pub /etc/apk/keys/phpearth.rsa.pub
Expand Down
14 changes: 8 additions & 6 deletions docker/7.1.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,15 @@ LABEL org.label-schema.build-date=$BUILD_DATE \
# PHP_INI_DIR to be symmetrical with official php docker image
ENV PHP_INI_DIR /etc/php/7.1

ENV \
# When using Composer, disable the warning about running commands as root/super user
COMPOSER_ALLOW_SUPERUSER=1 \
# Persistent runtime dependencies
DEPS="php7.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 \
curl \
ca-certificates"
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
Expand Down
Loading

0 comments on commit 9f8ba39

Please sign in to comment.