1 ARG UBUNTU_VERSION=xenial
3 FROM ubuntu:${UBUNTU_VERSION}
5 ARG PHP_VERSION=default
7 COPY setup/*.sh /root/setup/
8 COPY config/* /root/config/
10 RUN mkdir -p /usr/share/man/man1 && \
11 apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
12 chmod 755 /root/setup/*.sh && \
14 ./install_packages.sh && \
16 ./setup_apache.sh && \
17 ./setup_privoxy.sh && \
18 ./setup_php.sh "${PHP_VERSION}" && \
21 COPY docker/entrypoint.sh /root/entrypoint.sh
22 RUN chmod 755 /root/entrypoint.sh
26 # @todo can we avoid hardcoding this here? We can f.e. get it passed down as ARG...
27 WORKDIR /home/docker/build
29 ENTRYPOINT ["/root/entrypoint.sh"]