furaolink/Dockerfile

60 lines
1.5 KiB
Docker
Raw Normal View History

FROM alpine:3.17.1
2022-06-16 15:00:01 +00:00
LABEL maintainer="JulianPrieber"
LABEL description="LittleLink Custom Docker"
EXPOSE 80 443
2022-06-16 15:00:01 +00:00
# Setup apache and php
RUN apk --no-cache --update \
add apache2 \
apache2-ssl \
curl \
2023-01-26 13:40:19 +00:00
php81-apache2 \
php81-bcmath \
php81-bz2 \
php81-calendar \
php81-common \
php81-ctype \
php81-curl \
php81-dom \
php81-fileinfo \
php81-gd \
php81-iconv \
php81-json \
php81-mbstring \
php81-mysqli \
php81-mysqlnd \
php81-openssl \
php81-pdo_mysql \
php81-pdo_pgsql \
php81-pdo_sqlite \
php81-phar \
php81-session \
php81-xml \
php81-tokenizer \
php81-zip \
tzdata \
2022-06-16 15:00:01 +00:00
&& mkdir /htdocs
COPY littlelink-custom /htdocs
RUN chown -R apache:apache /htdocs
RUN find /htdocs -type d -print0 | xargs -0 chmod 0755
RUN find /htdocs -type f -print0 | xargs -0 chmod 0644
2022-06-16 15:00:01 +00:00
COPY --chmod=0755 docker-entrypoint.sh /usr/local/bin/
2022-06-16 15:00:01 +00:00
HEALTHCHECK CMD curl -f http://localhost -A "HealthCheck" || exit 1
2022-06-16 15:00:01 +00:00
# Forward Apache access and error logs to Docker's log collector.
# Optional last line adds extra verbosity with for example:
# [ssl:info] [pid 33] [client 10.0.5.8:45542] AH01964: Connection to child 2 established (server your.domain:443)
RUN ln -sf /dev/stdout /var/www/logs/access.log \
&& ln -sf /dev/stderr /var/www/logs/error.log \
&& ln -sf /dev/stderr /var/www/logs/ssl-access.log
# && ln -sf /dev/stderr /var/www/logs/ssl-error.log
# Set console entry path
WORKDIR /htdocs/littlelink
CMD ["docker-entrypoint.sh"]