Skip to content

Commit ba6e893

Browse files
committed
Removed composer from PHP 5.2 and pinned preferred packages.
1 parent eaf6a57 commit ba6e893

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

5.2/Dockerfile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ ENV ENVIRONMENT dev
77

88
RUN echo "deb http://archive.debian.org/debian lenny main contrib non-free" >> /etc/apt/sources.list.d/lenny.list
99

10+
RUN echo 'Explanation: choose Lenny as installation source if the package is not already installed and not available from Squeeze\n\
11+
Package: *\n\
12+
Pin: release n=lenny*\n\
13+
Pin-Priority: 100\n\
14+
15+
Explanation: choose Lenny as installation source for those packages\n\
16+
Package: php5 php5-common php5-mysql php5-mcrypt php5-gd php5-memcached php5-curl php-pear php-apc php5-cli php5-curl php5-mcrypt php5-sqlite php5-intl php5-tidy php5-imap php5-json php5-imagick libapache2-mod-php5\n\
17+
Pin: release n=lenny*\n\
18+
Pin-Priority: 999\n'\
19+
>> /etc/apt/preferences.d/lenny
20+
1021
RUN \
1122
apt-get update && \
1223
apt-get install -y \
@@ -21,15 +32,13 @@ RUN \
2132
php5-mysql \
2233
php5-mcrypt \
2334
php5-gd \
24-
php5-memcached \
2535
php5-curl \
2636
php-pear \
2737
php-apc \
2838
php5-cli \
2939
php5-curl \
3040
php5-mcrypt \
3141
php5-sqlite \
32-
php5-intl \
3342
php5-tidy \
3443
php5-imap \
3544
php5-json \
@@ -52,10 +61,6 @@ RUN \
5261
apt-get clean && \
5362
rm -rf /var/lib/apt/lists
5463

55-
RUN echo "suhosin.executor.include.whitelist = phar" > /etc/php5/cli/conf.d/composer.ini
56-
57-
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer
58-
5964
RUN echo Europe/Brussels > /etc/timezone && dpkg-reconfigure --frontend noninteractive tzdata
6065

6166
RUN echo 'de_DE ISO-8859-1\n\

0 commit comments

Comments
 (0)