fox-web-basic/Dockerfile

42 lines
1.1 KiB
Docker
Raw Normal View History

2022-01-05 15:36:36 +00:00
FROM ubuntu:20.04
2020-06-23 14:41:39 +00:00
ENV php_version=8.1
2021-12-31 10:45:07 +00:00
2022-01-05 15:36:36 +00:00
COPY ["/rootfs/etc/timezone", "/rootfs/etc/localtime", "/etc/"]
2020-06-23 14:41:39 +00:00
2022-01-05 15:36:36 +00:00
RUN apt-get update -y \
2020-06-23 14:41:39 +00:00
&& 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 \
&& sed -i -e 's/^ErrorLog.*$/ErrorLog \/dev\/stdout/g' /etc/apache2/apache2.conf
2022-01-05 15:36:36 +00:00
COPY rootfs /
WORKDIR /var/www/html
2020-06-23 14:41:39 +00:00
EXPOSE 80
CMD ["/docker-entrypoint.sh"]