nineapache82 as noroot
This commit is contained in:
@ -65,14 +65,26 @@ RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local
|
||||
RUN npm install -g n
|
||||
RUN npm install -g yarn
|
||||
|
||||
RUN mkdir /etc/supervisor.d
|
||||
# Configurer les permissions pour Apache et PHP
|
||||
RUN mkdir -p /etc/supervisor.d && \
|
||||
mkdir -p /app/public && \
|
||||
mkdir -p /etc/apache2/conf.d/nine && \
|
||||
mkdir -p /var/log/apache2 && \
|
||||
mkdir -p /run/apache2 && \
|
||||
chown -R apache:apache /var/log/apache2 /etc/apache2 /app /etc/ssl/apache2 /run/apache2
|
||||
|
||||
|
||||
# Copier les fichiers de configuration
|
||||
COPY apache2.sh /etc/apache2/apache2.sh
|
||||
RUN chmod +x /etc/apache2/apache2.sh
|
||||
COPY php.local.ini /etc/php82/conf.d/
|
||||
COPY httpd.conf /etc/apache2/httpd.conf
|
||||
COPY site.conf /etc/apache2/conf.d/nine/site.conf
|
||||
COPY ssl.conf /etc/apache2/conf.d/ssl.conf
|
||||
COPY index.php /app/public/index.php
|
||||
|
||||
# Donner les droits d'exécution au script
|
||||
RUN chmod +x /etc/apache2/apache2.sh
|
||||
|
||||
# Commande de démarrage
|
||||
USER apache
|
||||
CMD ["/etc/apache2/apache2.sh"]
|
Reference in New Issue
Block a user