php (8.3-apache-alpine)
Installation
docker pull git.winteraccess.id/docker/php:8.3-apache-alpine
sha256:a77b05d853e459edd27d7aba4ca6915c4156a3ee4f84b37e4ee6914cdcd91304
Image Layers
ADD alpine-minirootfs-3.19.4-x86_64.tar.gz / # buildkit |
CMD ["/bin/sh"] |
LABEL maintainer=<Aditya Prima> aprimediet@gmail.com |
ARG ALPINE_VERSION=3.19 |
ARG TZ=Asia/Jakarta |
USER root |
RUN |2 ALPINE_VERSION=3.19 TZ=Asia/Jakarta /bin/sh -c apk add --update libcap tzdata curl # buildkit |
RUN |2 ALPINE_VERSION=3.19 TZ=Asia/Jakarta /bin/sh -c ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone # buildkit |
RUN |2 ALPINE_VERSION=3.19 TZ=Asia/Jakarta /bin/sh -c rm -vrf /var/cache/apk/* # buildkit |
LABEL maintainer=<Muhamad Aditya Prima> aprimediet@gmail.com |
ARG PHP_VERSION=83 |
ENV PHP_VERSION=83 |
WORKDIR /root |
RUN |1 PHP_VERSION=83 /bin/sh -c apk add --update php${PHP_VERSION} php${PHP_VERSION}-common # buildkit |
RUN |1 PHP_VERSION=83 /bin/sh -c ln -ns /usr/bin/php${PHP_VERSION} /usr/bin/php; exit 0 # buildkit |
RUN |1 PHP_VERSION=83 /bin/sh -c rm -vrf /var/cache/apk/* # buildkit |
CMD ["/usr/bin/php"] |
LABEL maintainer=<Muhamad Aditya Prima> aprimediet@gmail.com |
ENV SERVER_ROOT=/app |
ENV SERVER_ADMIN=you@example.com |
ENV APP_DIR=/app/htdocs |
ENV LOG_LEVEL=info |
ENV PHP_MEMORY_LIMIT=256M |
WORKDIR /tmp |
RUN /bin/sh -c addgroup -g 10001 apache && adduser -D -u 10001 -G apache -s /bin/sh -h ${APP_DIR} apache # buildkit |
RUN /bin/sh -c apk upgrade && apk add --update apache2 php${PHP_VERSION}-apache2 # buildkit |
RUN /bin/sh -c mkdir -p ${APP_DIR} && mkdir -p ${SERVER_ROOT}/logs && mkdir -p ${SERVER_ROOT}/run && ln -s /usr/lib/apache2 ${SERVER_ROOT}/modules && chmod -R 755 ${SERVER_ROOT}/logs && chmod -R 755 ${SERVER_ROOT/run} # buildkit |
RUN /bin/sh -c sed -i "s|ServerRoot /var/www|ServerRoot ${SERVER_ROOT}|" /etc/apache2/httpd.conf && sed -i "s|ServerAdmin you@example.com| ServerAdmin ${SERVER_ADMIN}|" /etc/apache2/httpd.conf && sed -i "s|DocumentRoot \"/var/www/localhost/htdocs\"|DocumentRoot \"${APP_DIR}\"|" /etc/apache2/httpd.conf && sed -i "s|Directory \"/var/www/localhost/htdocs\"|Directory \"${APP_DIR}\"|" /etc/apache2/httpd.conf && sed -i "s|AllowOverride None|AllowOverride All|" /etc/apache2/httpd.conf && sed -i "s|ErrorLog .*|ErrorLog /dev/stderr \nTransferLog /dev/stdout|" /etc/apache2/httpd.conf && sed -i "s|CustomLog .* combined|CustomLog /dev/stdout combined|" /etc/apache2/httpd.conf && sed -i "s|LogLevel .*|LogLevel ${LOG_LEVEL}|" /etc/apache2/httpd.conf && sed -i "s|#LoadModule rewrite_module|LoadModule rewrite_module|" /etc/apache2/httpd.conf && sed -i "s|#LoadModule deflate_module|LoadModule deflate_module|" /etc/apache2/httpd.conf && sed -i "s|#LoadModule expires_module|LoadModule expires_module|" /etc/apache2/httpd.conf && sed -i "s|Require host .example.com|#Require host .example.com|" /etc/apache2/conf.d/info.conf && sed -i "s|Require ip 127|Require all granted|" /etc/apache2/conf.d/info.conf # buildkit |
ADD ./scripts/entrypoint /usr/local/bin/entrypoint # buildkit |
RUN /bin/sh -c chmod +x /usr/local/bin/entrypoint && cp -vR /var/www/localhost/htdocs/* ${APP_DIR}/ && rm -vrf /var/www && chown -R apache:apache ${APP_DIR} # buildkit |
WORKDIR /app/htdocs |
EXPOSE map[80/tcp:{}] |
ENTRYPOINT ["/usr/local/bin/entrypoint"] |
Labels
Key | Value |
---|---|
maintainer | <Muhamad Aditya Prima> aprimediet@gmail.com |
Details
Versions (79)
View all
apache-ubi9-micro
2024-12-13
8-apache-ubi9-micro
2024-12-13
8.4-apache-ubi9-micro
2024-12-13
8.3-apache-ubi9-micro
2024-12-13
8.2-apache-ubi9-micro
2024-12-13