Fixed broken adoption for PUID and PGID for Non-Root User laradock.

This commit is contained in:
Sascha Brendel 2017-05-07 12:43:20 +02:00
parent 100a2eb4ae
commit e454d1c8a7
No known key found for this signature in database
GPG Key ID: 928D5F269DEA177E
3 changed files with 18 additions and 6 deletions

View File

@ -46,8 +46,12 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Add a non-root user to prevent files being created with root permissions on host machine. # Add a non-root user to prevent files being created with root permissions on host machine.
ARG PUID=1000 ARG PUID=1000
ARG PGID=1000 ARG PGID=1000
RUN groupadd -g $PGID laradock && \
useradd -u $PUID -g laradock -m laradock ENV PUID ${PUID}
ENV PGID ${PGID}
RUN groupadd -g ${PGID} laradock && \
useradd -u ${PUID} -g laradock -m laradock
##################################### #####################################

View File

@ -46,8 +46,12 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Add a non-root user to prevent files being created with root permissions on host machine. # Add a non-root user to prevent files being created with root permissions on host machine.
ARG PUID=1000 ARG PUID=1000
ARG PGID=1000 ARG PGID=1000
RUN groupadd -g $PGID laradock && \
useradd -u $PUID -g laradock -m laradock ENV PUID ${PUID}
ENV PGID ${PGID}
RUN groupadd -g ${PGID} laradock && \
useradd -u ${PUID} -g laradock -m laradock
##################################### #####################################

View File

@ -46,8 +46,12 @@ MAINTAINER Mahmoud Zalt <mahmoud@zalt.me>
# Add a non-root user to prevent files being created with root permissions on host machine. # Add a non-root user to prevent files being created with root permissions on host machine.
ARG PUID=1000 ARG PUID=1000
ARG PGID=1000 ARG PGID=1000
RUN groupadd -g $PGID laradock && \
useradd -u $PUID -g laradock -m laradock ENV PUID ${PUID}
ENV PGID ${PGID}
RUN groupadd -g ${PGID} laradock && \
useradd -u ${PUID} -g laradock -m laradock
##################################### #####################################