File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- FROM debian:squeeze
1+ FROM pblaszczyk/ debian-lenny
22
33MAINTAINER Joeri Verdeyen <joeriv@yappa.be>
44
55ENV DOCUMENT_ROOT /var/www/app/html
66ENV ENVIRONMENT dev
77
8- RUN echo "deb http://archive.debian.org/debian lenny main contrib non-free" >> /etc/apt/sources.list.d/lenny.list
9-
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-
218RUN \
229 apt-get update && \
2310 apt-get install -y \
2613 vim \
2714 git \
2815 locales \
29- iptables \
3016 apache2 \
3117 php5 \
3218 php5-mysql \
5036 a2enmod dir && \
5137 a2enmod env && \
5238 a2enmod mime && \
53- a2enmod reqtimeout && \
5439 a2enmod rewrite && \
5540 a2enmod status && \
5641 a2enmod filter && \
@@ -90,11 +75,10 @@ COPY dummy.key /etc/ssl/crt/dummy.key
9075COPY default.conf /etc/apache2/sites-available/default
9176COPY php.ini /etc/php5/apache2/conf.d/
9277COPY php.ini /etc/php5/cli/conf.d/
93- COPY run.sh run.sh
78+ COPY run.sh / run.sh
9479
9580RUN chmod +x run.sh
9681
97- EXPOSE 80
98- EXPOSE 443
82+ EXPOSE 80 433
9983
100- CMD [". /run.sh" ]
84+ ENTRYPOINT ["/bin/bash" , " /run.sh" ]
Original file line number Diff line number Diff line change 1+ php :
2+ build : .
3+ working_dir : /var/www/app
4+ environment :
5+ ENVIRONMENT : dev
You can’t perform that action at this time.
0 commit comments