28 lines
		
	
	
	
		
			570 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
	
		
			570 B
		
	
	
	
		
			Docker
		
	
	
	
	
	
# TODO(any)(latest)
 | 
						|
FROM alpine:latest
 | 
						|
 | 
						|
# EXPOSE
 | 
						|
EXPOSE 9000
 | 
						|
 | 
						|
# install packages
 | 
						|
RUN apk update
 | 
						|
RUN apk add php-fpm php-mysqli
 | 
						|
RUN apk fix
 | 
						|
 | 
						|
RUN addgroup -S www
 | 
						|
RUN adduser -D -S -G www www
 | 
						|
 | 
						|
#RUN apk add curl
 | 
						|
# install wordpress
 | 
						|
# RUN mkdir -p /www
 | 
						|
# RUN curl https://wordpress.org/latest.tar.gz | tar zx -C /www
 | 
						|
 | 
						|
# add config
 | 
						|
COPY /conf/ /etc/php83/
 | 
						|
COPY /conf/wwwmore/ /conf/wwwmore/
 | 
						|
COPY /run.sh /run.sh
 | 
						|
 | 
						|
# start
 | 
						|
CMD ["/run.sh"]
 | 
						|
 | 
						|
HEALTHCHECK --interval=1s --timeout=10s --start-period=3600s --retries=1 CMD [ "sh", "-c", "! [ -z \"$(netstat -tuln | grep :9000)\" ]" ]
 |