fox-web-basic/Dockerfile

42 lines
1.1 KiB
Docker

FROM ubuntu:18.04
ENV php_version=7.4
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 \
&& 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 \
&& 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
WORKDIR /var/www/hmtl
EXPOSE 80
CMD ["/docker-entrypoint.sh"]