fox-web-basic/Dockerfile

44 lines
1.2 KiB
Docker

FROM ubuntu:20.04
ENV php_version=8.1
ENV FOX_WEBROOT=/var/www/html
COPY ["/rootfs/etc/timezone", "/rootfs/etc/localtime", "/etc/"]
RUN apt-get update -y \
&& apt-get install gnupg gnupg1 gnupg2 software-properties-common -y \
&& apt-add-repository ppa:ondrej/php \
&& apt-get update -y \
&& 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 \
php${php_version}-sqlite3 \
cron \
&& 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
COPY rootfs /
WORKDIR /var/www/html
EXPOSE 80
CMD ["/docker-entrypoint.sh"]