Updated php-cli for php5.6 alpine linux version
This commit is contained in:
parent
86035b93a7
commit
0254cbad61
|
@ -0,0 +1,49 @@
|
||||||
|
# PHP 5.6 == 3.5
|
||||||
|
ARG ALPINE_VERSION=3.5
|
||||||
|
|
||||||
|
FROM quay.io/sindigilive/alpine:${ALPINE_VERSION} AS builder
|
||||||
|
LABEL maintainer="<Muhamad Aditya Prima> map@sindigilive.com"
|
||||||
|
|
||||||
|
ARG PHP_VERSION=5.6
|
||||||
|
ARG PHP_SHORT_VER=5
|
||||||
|
ENV PHP_VERSION=${PHP_VERSION}
|
||||||
|
ENV PHP_SHORT_VER=${PHP_SHORT_VER}
|
||||||
|
|
||||||
|
WORKDIR /root
|
||||||
|
|
||||||
|
# INSTALL PHP APP
|
||||||
|
RUN mkdir -p /app ; \
|
||||||
|
apk add --update --no-cache \
|
||||||
|
php${PHP_SHORT_VER} php${PHP_SHORT_VER}-common ;
|
||||||
|
|
||||||
|
# CREATE SYMLINKS TO /usr/bin/php IN CASE IT IS NOT EXISTS
|
||||||
|
RUN ln -ns /usr/bin/php${PHP_SHORT_VER} /usr/bin/php ; exit 0
|
||||||
|
|
||||||
|
# CLEAN APK CACHES
|
||||||
|
RUN rm -vrf /var/cache/apk/*
|
||||||
|
|
||||||
|
FROM scratch
|
||||||
|
|
||||||
|
ARG PHP_VERSION=5.6
|
||||||
|
ARG PHP_SHORT_VER=5
|
||||||
|
ENV PHP_VERSION=${PHP_VERSION}
|
||||||
|
ENV PHP_SHORT_VER=${PHP_SHORT_VER}
|
||||||
|
|
||||||
|
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
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/bin/php", "-v"]
|
Loading…
Reference in New Issue