Keep the source and instead just "make clean"

This commit is contained in:
Tianon Gravi 2014-11-10 13:13:21 -07:00
parent 97c1d907b3
commit 4d09bc45cb
6 changed files with 66 additions and 60 deletions

View File

@ -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"]

View File

@ -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

View File

@ -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"]

View File

@ -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

View File

@ -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"]

View File

@ -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