1 ARG UBUNTU_VERSION=xenial
3 FROM ubuntu:${UBUNTU_VERSION}
5 ARG PHP_VERSION=default
7 RUN mkdir -p /usr/share/man/man1 && \
10 COPY setup/*.sh /root/setup/
11 COPY config/* /root/config/
13 RUN chmod 755 /root/setup/*.sh && \
15 ./install_packages.sh && \
17 ./setup_apache.sh && \
18 ./setup_privoxy.sh && \
19 ./setup_php.sh "${PHP_VERSION}" && \
20 apt-get remove -y composer || echo An error on the line above is ok; ./get_composer.sh && mv /usr/local/bin/composer.phar /usr/local/bin/composer && chmod 755 /usr/local/bin/composer
22 COPY docker/entrypoint.sh /root/entrypoint.sh
23 RUN chmod 755 /root/entrypoint.sh
29 ENTRYPOINT ["/root/entrypoint.sh"]