1
0
docker-apache2-itk/Dockerfile

32 lines
887 B
Docker
Raw Normal View History

2022-10-20 13:42:52 +02:00
FROM debian:bookworm-slim
RUN set -eux && \
apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get upgrade -y && \
DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
vim \
locales \
openssl \
ca-certificates \
net-tools \
curl \
apache2 \
libapache2-mpm-itk \
libapache2-mod-fcgid \
&& \
ln -sf /dev/stdout /var/log/apache2/access.log && \
ln -sf /dev/stderr /var/log/apache2/error.log && \
/usr/sbin/a2enmod remoteip rewrite proxy proxy_fcgi && \
rm -rf /var/lib/apt/lists/* && \
echo 'en_US.UTF-8 UTF-8' >> /etc/locale.gen && \
/usr/sbin/locale-gen && \
/usr/sbin/update-locale 'LANG=en_US.UTF-8'
EXPOSE 80/tcp
CMD ["/usr/sbin/apache2ctl", "-D", "FOREGROUND"]
STOPSIGNAL SIGWINCH
2022-10-21 14:44:56 +02:00
HEALTHCHECK CMD netstat -tnlp | grep ':::80' || exit 1