mirror of
				https://gitlab.com/animath/si/plateforme.git
				synced 2025-11-04 06:22:13 +01:00 
			
		
		
		
	Configuration du Dockerfile et support de l'envoi de mails
This commit is contained in:
		
							
								
								
									
										31
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										31
									
								
								Dockerfile
									
									
									
									
									
								
							@@ -1,8 +1,37 @@
 | 
			
		||||
FROM php:7.3-apache as plateforme-builder
 | 
			
		||||
 | 
			
		||||
# Enabling apache rewrite mod
 | 
			
		||||
RUN a2enmod rewrite
 | 
			
		||||
 | 
			
		||||
RUN apt clean && apt update && apt upgrade -y
 | 
			
		||||
 | 
			
		||||
# Install MySQL drivers
 | 
			
		||||
RUN docker-php-ext-install pdo_mysql \
 | 
			
		||||
    &&  docker-php-ext-enable pdo_mysql
 | 
			
		||||
 | 
			
		||||
COPY . /var/www/html/
 | 
			
		||||
# Install zip utilities
 | 
			
		||||
RUN apt install -y libzip-dev zip \
 | 
			
		||||
    && docker-php-ext-configure zip --with-libzip \
 | 
			
		||||
    && docker-php-ext-install zip \
 | 
			
		||||
    &&  docker-php-ext-enable zip
 | 
			
		||||
 | 
			
		||||
# Setup locales
 | 
			
		||||
RUN apt install locales locales-all -y && locale-gen fr_FR.UTF-8
 | 
			
		||||
ENV LANG fr_FR.UTF-8
 | 
			
		||||
ENV LANGUAGE fr_FR:fr
 | 
			
		||||
ENV LC_ALL fr_FR.UTF-8
 | 
			
		||||
 | 
			
		||||
# Setup timezone
 | 
			
		||||
RUN echo Europe/Paris > /etc/timezone \
 | 
			
		||||
    && ln -sf /usr/share/zoneinfo/Europe/Paris /etc/localtime \
 | 
			
		||||
    && dpkg-reconfigure -f noninteractive tzdata
 | 
			
		||||
 | 
			
		||||
# Setup mailing
 | 
			
		||||
RUN apt install -yq msmtp ca-certificates
 | 
			
		||||
COPY setup/msmtprc /etc/msmtprc
 | 
			
		||||
RUN echo "sendmail_path=msmtp -t" >> /usr/local/etc/php/conf.d/php-sendmail.ini
 | 
			
		||||
 | 
			
		||||
# Setting environment
 | 
			
		||||
ENV TFJM_LOCAL_PATH /var/www/html
 | 
			
		||||
ENV TFJM_MAIL_DOMAIN tfjm.org
 | 
			
		||||
ENV TFJM_URL_BASE https://inscription.tfjm.org
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user