prevent premature argument expansion

This commit is contained in:
El RIDO 2021-07-14 21:29:37 +02:00
parent d372a1792f
commit 75c1fc3603
No known key found for this signature in database
GPG key ID: 0F5C940A6BD81F92
2 changed files with 2 additions and 1 deletions

View file

@ -16,6 +16,7 @@ LABEL org.opencontainers.image.authors=support@privatebin.org \
RUN \
# Prepare composer dependencies
ALPINE_PACKAGES="$(echo ${ALPINE_PACKAGES} | sed 's/,/ /g')"
ALPINE_COMPOSER_PACKAGES="" ;\
if [ -n "${COMPOSER_PACKAGES}" ] ; then \
ALPINE_COMPOSER_PACKAGES="php8 php8-curl php8-mbstring php8-phar" ;\

View file

@ -30,7 +30,7 @@ docker_login() {
image_build_arguments() {
cat<<!
privatebin/fs --build-arg ALPINE_PACKAGES= --build-arg COMPOSER_PACKAGES=
privatebin/pdo --build-arg ALPINE_PACKAGES="php8-pdo_mysql php8-pdo_pgsql" --build-arg COMPOSER_PACKAGES=
privatebin/pdo --build-arg ALPINE_PACKAGES=php8-pdo_mysql,php8-pdo_pgsql --build-arg COMPOSER_PACKAGES=
privatebin/gcs --build-arg ALPINE_PACKAGES=php8-openssl
privatebin/nginx-fpm-alpine
!