php-worker: add laradock user (#1928)

This commit is contained in:
Lan Phan
2019-01-09 22:54:32 +07:00
committed by Shao Yu-Lung (Allen)
parent 7c4f6dd7a9
commit 03ff791e17
4 changed files with 14 additions and 0 deletions

View File

@ -25,6 +25,15 @@ RUN apk --update add wget \
RUN docker-php-ext-install mysqli mbstring pdo pdo_mysql tokenizer xml pcntl
RUN pecl channel-update pecl.php.net && pecl install memcached mcrypt-1.0.1 && docker-php-ext-enable memcached
# Add a non-root user:
ARG PUID=1000
ENV PUID ${PUID}
ARG PGID=1000
ENV PGID ${PGID}
RUN addgroup -g ${PGID} laradock && \
adduser -D -G laradock -u ${PUID} laradock
#Install SOAP package:
ARG INSTALL_SOAP=false
RUN if [ ${INSTALL_SOAP} = true ]; then \