21 lines
1.5 KiB
Docker
21 lines
1.5 KiB
Docker
FROM bitnami/oraclelinux-runtimes:7-php
|
|
LABEL maintainer "Bitnami <containers@bitnami.com>"
|
|
|
|
# Install required system packages and dependencies
|
|
RUN install_packages bzip2-libs ca-certificates cyrus-sasl-lib freetds freetype glibc gmp gnutls keyutils-libs krb5-libs libcom_err libcurl libffi libgcc libgcrypt libgpg-error libicu libidn libjpeg-turbo libpng libselinux libssh2 libstdc++ libtasn1 libtidy libxml2 libxslt ncurses-libs nettle nspr nss nss-softokn-freebl nss-util openldap openssl-libs p11-kit pcre postgresql-libs readline wget xz-libs zlib
|
|
RUN wget -nc -P /tmp/bitnami/pkg/cache/ https://downloads.bitnami.com/files/stacksmith/php-7.2.7-3-linux-x86_64-ol-7.tar.gz && \
|
|
echo "70fe7e1429557bc78fbbcdf950dd6e39a8af79c2d61a9761352c1710cff1c9f9 /tmp/bitnami/pkg/cache/php-7.2.7-3-linux-x86_64-ol-7.tar.gz" | sha256sum -c - && \
|
|
tar -zxf /tmp/bitnami/pkg/cache/php-7.2.7-3-linux-x86_64-ol-7.tar.gz -P --transform 's|^[^/]*/files|/opt/bitnami|' --wildcards '*/files' && \
|
|
rm -rf /tmp/bitnami/pkg/cache/php-7.2.7-3-linux-x86_64-ol-7.tar.gz
|
|
RUN mkdir -p /bitnami && ln -sf /bitnami/php /bitnami/php-fpm
|
|
RUN mkdir /opt/bitnami/php/logs && touch /opt/bitnami/php/logs/php-fpm.log
|
|
|
|
ENV BITNAMI_APP_NAME="php-fpm" \
|
|
BITNAMI_IMAGE_VERSION="7.2.7-ol-7-r18" \
|
|
PATH="/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/opt/bitnami/php/sbin:$PATH"
|
|
|
|
EXPOSE 9000
|
|
|
|
WORKDIR /app
|
|
CMD ["php-fpm","-F","--pid","/opt/bitnami/php/tmp/php-fpm.pid","-y","/opt/bitnami/php/etc/php-fpm.conf"]
|