2020-06-23 14:41:39 +00:00
|
|
|
FROM ubuntu:18.04
|
|
|
|
|
2021-12-31 10:45:07 +00:00
|
|
|
ENV php_version=7.4
|
|
|
|
|
2020-06-23 14:41:39 +00:00
|
|
|
COPY ["timezone", "localtime", "/etc/"]
|
|
|
|
|
|
|
|
RUN apt update -y \
|
|
|
|
&& apt-get install gnupg gnupg1 gnupg2 software-properties-common -y \
|
|
|
|
&& apt-add-repository ppa:ondrej/php \
|
|
|
|
&& apt-get update -y \
|
2021-12-31 10:45:07 +00:00
|
|
|
&& apt-get install -y apache2 \
|
|
|
|
php${php_version} \
|
|
|
|
php${php_version}-soap \
|
|
|
|
php${php_version}-snmp \
|
|
|
|
php${php_version}-mysql \
|
|
|
|
php${php_version}-curl \
|
|
|
|
php${php_version}-ldap \
|
|
|
|
php${php_version}-xml \
|
|
|
|
php${php_version}-mbstring \
|
|
|
|
php${php_version}-oauth \
|
|
|
|
php${php_version}-gd \
|
|
|
|
php${php_version}-igbinary \
|
|
|
|
php${php_version}-memcached \
|
|
|
|
php${php_version}-msgpack \
|
|
|
|
php${php_version}-oauth \
|
|
|
|
php${php_version}-zip \
|
|
|
|
cron \
|
2020-06-23 14:41:39 +00:00
|
|
|
&& apt-get purge gnupg gnupg1 gnupg2 software-properties-common -y \
|
|
|
|
&& apt-get autoremove -y \
|
|
|
|
&& rm -rf /var/lib/apt/lists/* \
|
|
|
|
&& rm -rf /var/www/html/* \
|
|
|
|
&& a2enmod rewrite
|
|
|
|
|
|
|
|
COPY docker-entrypoint.sh /
|
|
|
|
COPY 000-default.conf /etc/apache2/sites-available
|
2021-12-31 10:45:07 +00:00
|
|
|
WORKDIR /var/www/hmtl
|
2020-06-23 14:41:39 +00:00
|
|
|
EXPOSE 80
|
|
|
|
CMD ["/docker-entrypoint.sh"]
|
|
|
|
|
|
|
|
|
|
|
|
|