Updated php7-alpine
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:cli os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 1m35s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:debug os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:apache]) (push) Successful in 11m33s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:debug os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 9m56s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:debug os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:mysql with_server:apache]) (push) Successful in 12m5s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:debug os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:postgresql with_server:apache]) (push) Successful in 9m12s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:apache]) (push) Successful in 4m34s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 3m23s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:mysql with_server:apache]) (push) Successful in 4m15s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:postgresql with_server:apache]) (push) Successful in 4m26s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:cli os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 1m35s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:debug os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:apache]) (push) Successful in 11m33s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:debug os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 9m56s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:debug os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:mysql with_server:apache]) (push) Successful in 12m5s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:debug os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:postgresql with_server:apache]) (push) Successful in 9m12s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:apache]) (push) Successful in 4m34s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:false with_server:false]) (push) Successful in 3m23s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:mysql with_server:apache]) (push) Successful in 4m15s
Details
Build and push PHP 7 container images / Build PHP 7 container images (map[mode:full os:alpine os_version:3.15 php_ver_short:7 php_version:7.4 with_database:postgresql with_server:apache]) (push) Successful in 4m26s
Details
This commit is contained in:
parent
64d95b10ef
commit
58895d367e
|
@ -1,5 +1,5 @@
|
|||
# PHP 7.2 == 3.9
|
||||
# PHP 7.3 == 3.10
|
||||
# PHP 7.3 == 3.12
|
||||
# PHP 7.4 == 3.15
|
||||
ARG OS_VERSION=3.15
|
||||
|
||||
|
|
|
@ -0,0 +1,78 @@
|
|||
# PHP 7.2 == 3.9
|
||||
# PHP 7.3 == 3.12
|
||||
# PHP 7.4 == 3.15
|
||||
ARG OS_VERSION=3.15
|
||||
|
||||
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
|
||||
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
|
||||
|
||||
ARG FLAVOR=cli
|
||||
ARG WITH_APACHE=false
|
||||
ARG WITH_DATABASE=false
|
||||
ARG PHP_VERSION=7.4
|
||||
ARG PHP_VER_SHORT=7
|
||||
|
||||
ENV FLAVOR=${FLAVOR}
|
||||
ENV WITH_APACHE=${WITH_APACHE}
|
||||
ENV WITH_DATABASE=${WITH_DATABASE}
|
||||
ENV PHP_VERSION=${PHP_VERSION}
|
||||
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
|
||||
ENV SERVER_ROOT=/app
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
ADD 7/scripts/alpine-setup.sh /tmp/setup.sh
|
||||
ADD scripts/entrypoint.sh /usr/local/bin/
|
||||
|
||||
# Create directory, and install required php app
|
||||
RUN /bin/mkdir -p /app ; \
|
||||
/sbin/apk add --update --no-cache \
|
||||
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
|
||||
php${PHP_VER_SHORT}-cli ; \
|
||||
/bin/chmod +x /tmp/setup.sh /usr/local/bin/entrypoint.sh ; \
|
||||
/bin/sh /tmp/setup.sh; \
|
||||
/bin/rm -f /tmp/*.sh;
|
||||
|
||||
ADD htdocs ${SERVER_ROOT}/htdocs
|
||||
|
||||
# Create symlinks to /usr/bin/php in case it doesn't exists
|
||||
RUN ln -ns /usr/bin/php${PHP_VER_SHORT} /usr/bin/php ; exit 0
|
||||
|
||||
# CLEAN APK CACHES
|
||||
RUN sed -i "s|#version#|${PHP_VERSION}|" /app/htdocs/index.html ; \
|
||||
sed -i "s|#os#|alpine|" /app/htdocs/index.html ; \
|
||||
sed -i "s|#flavor#|${FLAVOR}|" /app/htdocs/index.html ; \
|
||||
mkdir -p ${SERVER_ROOT}/logs ${SERVER_ROOT}/run /run/apache2 ; \
|
||||
ln -s /usr/lib/apache2 ${SERVER_ROOT}/modules ; \
|
||||
chmod -R 755 ${SERVER_ROOT}/logs ${SERVER_ROOT/run} ; \
|
||||
chown -R apache:apache ${SERVER_ROOT}/htdocs ${SERVER_ROOT}/logs ${SERVER_ROOT}/run /run/apache2 ; \
|
||||
rm -vrf /var/cache/apk/*
|
||||
|
||||
FROM scratch
|
||||
|
||||
ARG PHP_VERSION=5.6
|
||||
ARG PHP_VER_SHORT=5
|
||||
|
||||
ENV PHP_VERSION=${PHP_VERSION}
|
||||
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
|
||||
|
||||
LABEL maintainer="Muhamad Aditya Prima <map@sindigilive.com>"
|
||||
LABEL name="php"
|
||||
LABEL version="${PHP_VERSION}"
|
||||
LABEL distribution-scope="public"
|
||||
|
||||
#labels for container catalog
|
||||
LABEL summary="PHP ${PHP_VERSION} on alpine based container image"
|
||||
LABEL description="Provide php on alpine based container base image"
|
||||
LABEL io.k8s.description="Very small alpine linux container image"
|
||||
LABEL io.k8s.display-name="PHP ${PHP_VERSION}"
|
||||
|
||||
COPY --from=builder / /
|
||||
|
||||
USER apache
|
||||
|
||||
WORKDIR /app/htdocs
|
||||
|
||||
STOPSIGNAL SIGQUIT
|
||||
|
||||
CMD ["/usr/bin/php", "-v"]
|
|
@ -0,0 +1,65 @@
|
|||
# PHP 7.2 == 3.9
|
||||
# PHP 7.3 == 3.12
|
||||
# PHP 7.4 == 3.15
|
||||
ARG OS_VERSION=3.15
|
||||
|
||||
FROM quay.io/sindigilive/alpine:${OS_VERSION} AS builder
|
||||
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
|
||||
|
||||
ARG FLAVOR=cli
|
||||
ARG WITH_APACHE=false
|
||||
ARG WITH_DATABASE=false
|
||||
ARG PHP_VERSION=7.4
|
||||
ARG PHP_VER_SHORT=7
|
||||
|
||||
ENV FLAVOR=${FLAVOR}
|
||||
ENV WITH_APACHE=${WITH_APACHE}
|
||||
ENV WITH_DATABASE=${WITH_DATABASE}
|
||||
ENV PHP_VERSION=${PHP_VERSION}
|
||||
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
|
||||
|
||||
WORKDIR /root
|
||||
|
||||
ADD 7/scripts/alpine-setup.sh /tmp/setup.sh
|
||||
|
||||
# Create directory, and install required php app
|
||||
RUN /bin/mkdir -p /app ; \
|
||||
/sbin/apk add --update --no-cache \
|
||||
php${PHP_VER_SHORT} php${PHP_VER_SHORT}-common \
|
||||
php${PHP_VER_SHORT}-cli ; \
|
||||
/bin/chmod +x /tmp/setup.sh; \
|
||||
/bin/sh /tmp/setup.sh; \
|
||||
/bin/rm -f /tmp/*.sh;
|
||||
|
||||
# Create symlinks to /usr/bin/php in case it doesn't exists
|
||||
RUN ln -ns /usr/bin/php${PHP_VER_SHORT} /usr/bin/php ; exit 0
|
||||
|
||||
# CLEAN APK CACHES
|
||||
RUN rm -vrf /var/cache/apk/*
|
||||
|
||||
FROM scratch
|
||||
|
||||
ARG PHP_VERSION=5.6
|
||||
ARG PHP_VER_SHORT=5
|
||||
|
||||
ENV PHP_VERSION=${PHP_VERSION}
|
||||
ENV PHP_VER_SHORT=${PHP_VER_SHORT}
|
||||
|
||||
LABEL maintainer="Muhamad Aditya Prima <map@sindigilive.com>"
|
||||
LABEL name="php"
|
||||
LABEL version="${PHP_VERSION}"
|
||||
LABEL distribution-scope="public"
|
||||
|
||||
#labels for container catalog
|
||||
LABEL summary="PHP ${PHP_VERSION} on alpine based container image"
|
||||
LABEL description="Provide php on alpine based container base image"
|
||||
LABEL io.k8s.description="Very small alpine linux container image"
|
||||
LABEL io.k8s.display-name="PHP ${PHP_VERSION}"
|
||||
|
||||
COPY --from=builder / /
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
STOPSIGNAL SIGQUIT
|
||||
|
||||
CMD ["/usr/bin/php", "-v"]
|
Loading…
Reference in New Issue