Add apache/Dockerfile
This commit is contained in:
parent
2a85c67185
commit
7438375aa8
1 changed files with 16 additions and 0 deletions
16
apache/Dockerfile
Normal file
16
apache/Dockerfile
Normal file
|
@ -0,0 +1,16 @@
|
||||||
|
FROM ubuntu:20.04
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install -y apache2 ssl-cert
|
||||||
|
|
||||||
|
RUN a2enmod ssl proxy proxy_fcgi rewrite
|
||||||
|
|
||||||
|
COPY apache2.conf /etc/apache2/apache2.conf
|
||||||
|
COPY php-fpm.conf /etc/apache2/conf-available/php-fpm.conf
|
||||||
|
|
||||||
|
RUN a2enconf php-fpm
|
||||||
|
|
||||||
|
RUN echo "ServerName localhost" >> /etc/apache2/apache2.conf
|
||||||
|
|
||||||
|
EXPOSE 80 443
|
||||||
|
|
||||||
|
CMD ["apache2ctl", "-D", "FOREGROUND"]
|
Loading…
Reference in a new issue