CI_ENVIRONMENT variable

This commit is contained in:
tokslaw7
2023-03-17 23:49:07 +00:00
parent b49f19e502
commit 3e67eb295a
2 changed files with 6 additions and 0 deletions
+1
View File
@@ -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
+5
View File
@@ -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