This commit is contained in:
41
Dockerfile
Normal file
41
Dockerfile
Normal file
@ -0,0 +1,41 @@
|
||||
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 \
|
||||
php8.1-cli \
|
||||
php8.1-curl \
|
||||
php8.1-pgsql \
|
||||
php8.1-mysql \
|
||||
php8.1-sqlite3 \
|
||||
php8.1-gd \
|
||||
php8.1-mbstring \
|
||||
php8.1-zip \
|
||||
php8.1-fpm \
|
||||
php-pear \
|
||||
&& \
|
||||
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'
|
||||
|
||||
ADD start.sh /
|
||||
|
||||
EXPOSE 80/tcp
|
||||
|
||||
CMD /start.sh
|
||||
|
||||
HEALTHCHECK CMD netstat -tnlp | grep '0.0.0.0:80' || exit 1
|
Reference in New Issue
Block a user