fox-web-basic/Dockerfile

23 lines
677 B
Docker
Raw Normal View History

2020-06-23 14:41:39 +00:00
FROM ubuntu:18.04
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 apache2 php php-soap php-snmp php-mysql php-curl php-ldap php-xml php-mbstring php-oauth php-gd cron -y \
&& 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
EXPOSE 80
CMD ["/docker-entrypoint.sh"]