move to usage of Bionic as default ubuntu version for local ci containers
[plcapi.git] / tests / ci / Dockerfile
1 ARG UBUNTU_VERSION=bionic
2
3 FROM ubuntu:${UBUNTU_VERSION}
4
5 ARG PHP_VERSION=default
6
7 COPY setup/*.sh /root/setup/
8 COPY config/* /root/config/
9
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 && \
13   cd /root/setup && \
14   ./install_packages.sh && \
15   ./create_user.sh && \
16   ./setup_apache.sh && \
17   ./setup_privoxy.sh && \
18   ./setup_php.sh "${PHP_VERSION}" && \
19   ./setup_composer.sh
20
21 COPY docker/entrypoint.sh /root/entrypoint.sh
22 RUN chmod 755 /root/entrypoint.sh
23
24 EXPOSE 80 443 8080
25
26 # @todo can we avoid hardcoding this here? We can f.e. get it passed down as ARG...
27 WORKDIR /home/docker/build
28
29 ENTRYPOINT ["/root/entrypoint.sh"]