-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (31 loc) · 1.37 KB
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
ARG UBUNTU_VERSION=jammy
FROM ubuntu:${UBUNTU_VERSION}
# other possible org.opencontainers.image labels: title, vendor
LABEL org.opencontainers.image.source=https://github.com/gggeek/phpxmlrpc-debugger
LABEL org.opencontainers.image.description="An xmlrpc and jsonrpc graphical debugger, made available as Docker container "
LABEL org.opencontainers.image.licenses=BSD
ARG PHP_VERSION=default
COPY docker/setup/*.sh /root/setup/
COPY docker/config/* /root/config/
COPY docker/entrypoint.sh /root/entrypoint.sh
COPY src /var/www/html_/
RUN mkdir -p /usr/share/man/man1 && \
apt-get update && DEBIAN_FRONTEND=noninteractive apt-get -y upgrade && \
chmod 755 /root/setup/*.sh && \
cd /root/setup && \
./install_packages.sh && \
./setup_apache.sh && \
./setup_php.sh "${PHP_VERSION}" && \
./setup_composer.sh && \
rm -rf /var/www/html && mv /var/www/html_ /var/www/html && chown -R www-data:www-data /var/www/html && \
/root/setup/setup_app.sh /var/www/html && \
rm -rf /root/.cache/composer/ && \
./remove_packages.sh && \
apt-get autoremove -y && \
apt-get purge -y --auto-remove && \
rm -rf /var/lib/apt/lists/* /var/log/alternatives.log /var/log/apt/* /var/log/dpkg.log && \
chmod 755 /root/entrypoint.sh
EXPOSE 80 443
# @todo can we avoid hardcoding this here? We can f.e. get it passed down as ARG...
WORKDIR /var/www/html
ENTRYPOINT ["/root/entrypoint.sh"]