add shadow
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Aleksander Cynarski 2021-06-14 16:31:33 +02:00
parent cc429768fd
commit b8b6d04023
Signed by: paramah
GPG Key ID: C4340BA42B9C173A
2 changed files with 3 additions and 2 deletions

View File

@ -65,11 +65,12 @@ FROM php:${PHP_VERSION}
ARG ENVIRONMENT=production ARG ENVIRONMENT=production
# install system libs # install system libs
RUN apk add --no-cache libintl c-client libpng icu-libs libldap libpq libzip RUN apk add --no-cache libintl c-client libpng icu-libs libldap libpq libzip shadow
# Install apps # Install apps
RUN apk add --no-cache wget curl bash git openssh supervisor nginx openssl zip RUN apk add --no-cache wget curl bash git openssh supervisor nginx openssl zip
ENV DIR /var/www ENV DIR /var/www
ENV DOCKERIZE_VERSION v0.6.1 ENV DOCKERIZE_VERSION v0.6.1

View File

@ -2,7 +2,7 @@
PHP_VERSION=`php -r 'echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;'` PHP_VERSION=`php -r 'echo PHP_MAJOR_VERSION.PHP_MINOR_VERSION;'`
echo "Acutal environment: ${ENVIRONMENT}" echo "Actual environment: ${ENVIRONMENT}"
if [ -f /usr/local/etc/php/php.ini-$ENVIRONMENT ]; then if [ -f /usr/local/etc/php/php.ini-$ENVIRONMENT ]; then
mv /usr/local/etc/php/php.ini-$ENVIRONMENT /usr/local/etc/php/php.ini mv /usr/local/etc/php/php.ini-$ENVIRONMENT /usr/local/etc/php/php.ini