@@ -4,34 +4,25 @@ FROM debian:wheezy-backports
44ENV restyaboard_version=v0.2
55
66# update & install package
7- RUN \
8- apt-get update -y &&\
9- apt-get install -y zip curl cron postgresql nginx &&\
10- apt-get install -y php5 php5-fpm php5-curl php5-pgsql php5-imagick libapache2-mod-php5 &&\
11- echo "postfix postfix/mailname string example.com" \
12- | debconf-set-selections &&\
13- echo "postfix postfix/main_mailer_type string 'Internet Site'" \
14- | debconf-set-selections &&\
15- apt-get install -y postfix
7+ RUN apt-get update --yes
8+ RUN apt-get install --yes zip curl cron postgresql nginx
9+ RUN apt-get install --yes php5 php5-fpm php5-curl php5-pgsql php5-imagick libapache2-mod-php5
10+ RUN echo "postfix postfix/mailname string example.com" | debconf-set-selections \
11+ && echo "postfix postfix/main_mailer_type string 'Internet Site'" | debconf-set-selections \
12+ && apt-get install -y postfix
1613
1714# deploy app
18- RUN \
19- curl -L -o /tmp/restyaboard.zip \
20- https://github.com/RestyaPlatform/board/releases/download/${restyaboard_version}/board-${restyaboard_version}.zip &&\
21- unzip /tmp/restyaboard.zip -d /usr/share/nginx/html &&\
22- rm /tmp/restyaboard.zip
15+ RUN curl -L -o /tmp/restyaboard.zip https://github.com/RestyaPlatform/board/releases/download/${restyaboard_version}/board-${restyaboard_version}.zip \
16+ && unzip /tmp/restyaboard.zip -d /usr/share/nginx/html \
17+ && rm /tmp/restyaboard.zip
2318
2419# setting app
2520WORKDIR /usr/share/nginx/html
26- RUN \
27- cp -R media /tmp/ &&\
28- cp restyaboard.conf /etc/nginx/conf.d &&\
29- sed -i 's/^.*listen.mode = 0660$/listen.mode = 0660/' \
30- /etc/php5/fpm/pool.d/www.conf &&\
31- sed -i 's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|' \
32- /etc/nginx/conf.d/restyaboard.conf &&\
33- sed -i -e "/fastcgi_pass/a fastcgi_param HTTPS 'off';" \
34- /etc/nginx/conf.d/restyaboard.conf
21+ RUN cp -R media /tmp/ \
22+ && cp restyaboard.conf /etc/nginx/conf.d \
23+ && sed -i 's/^.*listen.mode = 0660$/listen.mode = 0660/' /etc/php5/fpm/pool.d/www.conf \
24+ && sed -i 's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|' /etc/nginx/conf.d/restyaboard.conf \
25+ && sed -i -e "/fastcgi_pass/a fastcgi_param HTTPS 'off';" /etc/nginx/conf.d/restyaboard.conf
3526
3627# volume
3728VOLUME /usr/share/nginx/html/media
0 commit comments