mirror of
https://github.com/danog/php.git
synced 2025-01-22 04:51:20 +01:00
Keep the source and instead just "make clean"
This commit is contained in:
parent
97c1d907b3
commit
4d09bc45cb
@ -3,6 +3,12 @@ FROM debian:jessie
|
||||
# persistent / runtime deps
|
||||
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
# phpize deps
|
||||
RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
ENV PHP_INI_DIR /usr/local/etc/php
|
||||
RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
@ -16,12 +22,9 @@ RUN buildDeps=" \
|
||||
bzip2 \
|
||||
file \
|
||||
libcurl4-openssl-dev \
|
||||
libpng12-dev \
|
||||
libreadline6-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
m4 \
|
||||
pkg-config \
|
||||
"; \
|
||||
set -x \
|
||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
@ -32,22 +35,20 @@ RUN buildDeps=" \
|
||||
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
|
||||
&& rm php.tar.bz2* \
|
||||
&& cd /usr/src/php \
|
||||
&& ./configure --disable-cgi \
|
||||
&& ./configure \
|
||||
--with-config-file-path="$PHP_INI_DIR" \
|
||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||
--enable-soap \
|
||||
--disable-cgi \
|
||||
--with-curl \
|
||||
--with-gd \
|
||||
--with-mysql \
|
||||
--with-mysqli \
|
||||
--with-openssl \
|
||||
--with-pdo-mysql \
|
||||
--with-readline \
|
||||
--with-zlib \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -r /usr/src/php
|
||||
&& make clean
|
||||
|
||||
##<autogenerated>##
|
||||
CMD ["php", "-a"]
|
||||
|
@ -3,6 +3,12 @@ FROM debian:jessie
|
||||
# persistent / runtime deps
|
||||
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
# phpize deps
|
||||
RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
ENV PHP_INI_DIR /usr/local/etc/php
|
||||
RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
|
||||
##<autogenerated>##
|
||||
RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@ -29,12 +35,9 @@ RUN buildDeps=" \
|
||||
bzip2 \
|
||||
file \
|
||||
libcurl4-openssl-dev \
|
||||
libpng12-dev \
|
||||
libreadline6-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
m4 \
|
||||
pkg-config \
|
||||
"; \
|
||||
set -x \
|
||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
@ -45,22 +48,20 @@ RUN buildDeps=" \
|
||||
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
|
||||
&& rm php.tar.bz2* \
|
||||
&& cd /usr/src/php \
|
||||
&& ./configure --disable-cgi \
|
||||
&& ./configure \
|
||||
--with-config-file-path="$PHP_INI_DIR" \
|
||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||
--enable-soap \
|
||||
--disable-cgi \
|
||||
--with-curl \
|
||||
--with-gd \
|
||||
--with-mysql \
|
||||
--with-mysqli \
|
||||
--with-openssl \
|
||||
--with-pdo-mysql \
|
||||
--with-readline \
|
||||
--with-zlib \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -r /usr/src/php
|
||||
&& make clean
|
||||
|
||||
##<autogenerated>##
|
||||
WORKDIR /var/www/html
|
||||
|
@ -3,6 +3,12 @@ FROM debian:jessie
|
||||
# persistent / runtime deps
|
||||
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
# phpize deps
|
||||
RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
ENV PHP_INI_DIR /usr/local/etc/php
|
||||
RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
@ -16,12 +22,9 @@ RUN buildDeps=" \
|
||||
bzip2 \
|
||||
file \
|
||||
libcurl4-openssl-dev \
|
||||
libpng12-dev \
|
||||
libreadline6-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
m4 \
|
||||
pkg-config \
|
||||
"; \
|
||||
set -x \
|
||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
@ -32,22 +35,20 @@ RUN buildDeps=" \
|
||||
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
|
||||
&& rm php.tar.bz2* \
|
||||
&& cd /usr/src/php \
|
||||
&& ./configure --disable-cgi \
|
||||
&& ./configure \
|
||||
--with-config-file-path="$PHP_INI_DIR" \
|
||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||
--enable-soap \
|
||||
--disable-cgi \
|
||||
--with-curl \
|
||||
--with-gd \
|
||||
--with-mysql \
|
||||
--with-mysqli \
|
||||
--with-openssl \
|
||||
--with-pdo-mysql \
|
||||
--with-readline \
|
||||
--with-zlib \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -r /usr/src/php
|
||||
&& make clean
|
||||
|
||||
##<autogenerated>##
|
||||
CMD ["php", "-a"]
|
||||
|
@ -3,6 +3,12 @@ FROM debian:jessie
|
||||
# persistent / runtime deps
|
||||
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
# phpize deps
|
||||
RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
ENV PHP_INI_DIR /usr/local/etc/php
|
||||
RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
|
||||
##<autogenerated>##
|
||||
RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@ -29,12 +35,9 @@ RUN buildDeps=" \
|
||||
bzip2 \
|
||||
file \
|
||||
libcurl4-openssl-dev \
|
||||
libpng12-dev \
|
||||
libreadline6-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
m4 \
|
||||
pkg-config \
|
||||
"; \
|
||||
set -x \
|
||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
@ -45,22 +48,20 @@ RUN buildDeps=" \
|
||||
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
|
||||
&& rm php.tar.bz2* \
|
||||
&& cd /usr/src/php \
|
||||
&& ./configure --disable-cgi \
|
||||
&& ./configure \
|
||||
--with-config-file-path="$PHP_INI_DIR" \
|
||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||
--enable-soap \
|
||||
--disable-cgi \
|
||||
--with-curl \
|
||||
--with-gd \
|
||||
--with-mysql \
|
||||
--with-mysqli \
|
||||
--with-openssl \
|
||||
--with-pdo-mysql \
|
||||
--with-readline \
|
||||
--with-zlib \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -r /usr/src/php
|
||||
&& make clean
|
||||
|
||||
##<autogenerated>##
|
||||
WORKDIR /var/www/html
|
||||
|
@ -3,6 +3,12 @@ FROM debian:jessie
|
||||
# persistent / runtime deps
|
||||
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
# phpize deps
|
||||
RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
ENV PHP_INI_DIR /usr/local/etc/php
|
||||
RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
|
||||
##<autogenerated>##
|
||||
##</autogenerated>##
|
||||
|
||||
@ -16,12 +22,9 @@ RUN buildDeps=" \
|
||||
bzip2 \
|
||||
file \
|
||||
libcurl4-openssl-dev \
|
||||
libpng12-dev \
|
||||
libreadline6-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
m4 \
|
||||
pkg-config \
|
||||
"; \
|
||||
set -x \
|
||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
@ -32,22 +35,20 @@ RUN buildDeps=" \
|
||||
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
|
||||
&& rm php.tar.bz2* \
|
||||
&& cd /usr/src/php \
|
||||
&& ./configure --disable-cgi \
|
||||
&& ./configure \
|
||||
--with-config-file-path="$PHP_INI_DIR" \
|
||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||
--enable-soap \
|
||||
--disable-cgi \
|
||||
--with-curl \
|
||||
--with-gd \
|
||||
--with-mysql \
|
||||
--with-mysqli \
|
||||
--with-openssl \
|
||||
--with-pdo-mysql \
|
||||
--with-readline \
|
||||
--with-zlib \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -r /usr/src/php
|
||||
&& make clean
|
||||
|
||||
##<autogenerated>##
|
||||
CMD ["php", "-a"]
|
||||
|
@ -3,6 +3,12 @@ FROM debian:jessie
|
||||
# persistent / runtime deps
|
||||
RUN apt-get update && apt-get install -y ca-certificates curl libxml2 --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
# phpize deps
|
||||
RUN apt-get update && apt-get install -y autoconf pkg-config --no-install-recommends && rm -r /var/lib/apt/lists/*
|
||||
|
||||
ENV PHP_INI_DIR /usr/local/etc/php
|
||||
RUN mkdir -p $PHP_INI_DIR/conf.d
|
||||
|
||||
##<autogenerated>##
|
||||
RUN apt-get update && apt-get install -y apache2-bin apache2.2-common --no-install-recommends && rm -rf /var/lib/apt/lists/*
|
||||
|
||||
@ -29,12 +35,9 @@ RUN buildDeps=" \
|
||||
bzip2 \
|
||||
file \
|
||||
libcurl4-openssl-dev \
|
||||
libpng12-dev \
|
||||
libreadline6-dev \
|
||||
libssl-dev \
|
||||
libxml2-dev \
|
||||
m4 \
|
||||
pkg-config \
|
||||
"; \
|
||||
set -x \
|
||||
&& apt-get update && apt-get install -y $buildDeps --no-install-recommends && rm -rf /var/lib/apt/lists/* \
|
||||
@ -45,22 +48,20 @@ RUN buildDeps=" \
|
||||
&& tar -xf php.tar.bz2 -C /usr/src/php --strip-components=1 \
|
||||
&& rm php.tar.bz2* \
|
||||
&& cd /usr/src/php \
|
||||
&& ./configure --disable-cgi \
|
||||
&& ./configure \
|
||||
--with-config-file-path="$PHP_INI_DIR" \
|
||||
--with-config-file-scan-dir="$PHP_INI_DIR/conf.d" \
|
||||
$PHP_EXTRA_CONFIGURE_ARGS \
|
||||
--enable-soap \
|
||||
--disable-cgi \
|
||||
--with-curl \
|
||||
--with-gd \
|
||||
--with-mysql \
|
||||
--with-mysqli \
|
||||
--with-openssl \
|
||||
--with-pdo-mysql \
|
||||
--with-readline \
|
||||
--with-zlib \
|
||||
&& make -j"$(nproc)" \
|
||||
&& make install \
|
||||
&& { find /usr/local/bin /usr/local/sbin -type f -executable -exec strip --strip-all '{}' + || true; } \
|
||||
&& apt-get purge -y --auto-remove $buildDeps \
|
||||
&& rm -r /usr/src/php
|
||||
&& make clean
|
||||
|
||||
##<autogenerated>##
|
||||
WORKDIR /var/www/html
|
||||
|
Loading…
x
Reference in New Issue
Block a user