CI_ENVIRONMENT variable
This commit is contained in:
@@ -8,6 +8,7 @@ services:
|
||||
args:
|
||||
uid: ${UID}
|
||||
environment:
|
||||
- CI_ENVIRONMENT=${CI_ENVIRONMENT:-development}
|
||||
- APACHE_RUN_USER=#${UID}
|
||||
- APACHE_RUN_GROUP=#${UID}
|
||||
restart: unless-stopped
|
||||
|
||||
@@ -48,6 +48,11 @@ COPY / /var/www/html/
|
||||
# so when we execute CLI commands, all the host file's ownership remains intact
|
||||
# otherwise command from inside container will create root-owned files and directories
|
||||
ARG uid=1000
|
||||
|
||||
ARG CI_ENVIRONMENT
|
||||
|
||||
ENV CI_ENVIRONMENT=$CI_ENVIRONMENT
|
||||
|
||||
RUN useradd -G www-data,root -u $uid -d /home/devuser devuser
|
||||
RUN mkdir -p /home/devuser/.composer && \
|
||||
chown -R devuser:devuser /home/devuser
|
||||
|
||||
Reference in New Issue
Block a user