17 lines
		
	
	
		
			583 B
		
	
	
	
		
			Docker
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			583 B
		
	
	
	
		
			Docker
		
	
	
		
			Executable File
		
	
	
	
	
FROM alpine:latest
 | 
						|
 | 
						|
# Install necessary packages
 | 
						|
RUN apk update && apk upgrade
 | 
						|
RUN apk add php apache2-ssl php83-fileinfo php83-openssl php83-iconv php83-common php83-dom php83-sodium php83-curl curl php83-pecl-apcu php83-apache2 imagemagick php83-pecl-imagick php-mbstring imagemagick-webp imagemagick-jpeg shadow
 | 
						|
 | 
						|
# Copy needed files
 | 
						|
COPY ./4get /var/www/html/4get/
 | 
						|
COPY ./httpd.conf /etc/apache2/httpd.conf
 | 
						|
COPY ./entrypoint.sh /entrypoint.sh
 | 
						|
COPY ./gen_config.php /gen_config.php
 | 
						|
 | 
						|
# Set workdir to 4get directory
 | 
						|
WORKDIR /var/www/html/4get
 | 
						|
 | 
						|
CMD ["sh", "-c", "sh /entrypoint.sh"]
 |