Jenkins fix

This commit is contained in:
Olusesan Ameye
2022-10-15 21:31:34 +00:00
parent 4303d9eff9
commit ef905e9ed6
2 changed files with 8 additions and 2 deletions
+5 -2
View File
@@ -7,9 +7,12 @@ services:
args:
uid: ${UID}
environment:
- APACHE_RUN_USER=#${UID}
- APACHE_RUN_GROUP=#${UID}
- APACHE_RUN_USER=${UID}
- APACHE_RUN_GROUP=${UID}
- CI_ENV
- CI_CONFIG
restart: unless-stopped
image: registry.chiefsoft.net/coregrade-web:latest
volumes:
- ./:/var/www/html
- ./apache_log:/var/log/apache2
+3
View File
@@ -1,5 +1,6 @@
FROM php:7.4-apache
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
RUN apt-get clean
RUN apt-get update
RUN apt-get install -y \
git \
@@ -48,5 +49,7 @@ ARG uid=1000
RUN useradd -G www-data,root -u $uid -d /home/devuser devuser
RUN mkdir -p /home/devuser/.composer && \
chown -R devuser:devuser /home/devuser
RUN cd /var/www/html && composer install
RUN chmod -R a+w /var/www/html/writable
EXPOSE 80