Commit dfce27f6 by Tsubasa Namiki

Use built zip from releases #4

parent 0dfeb04e
...@@ -6,11 +6,8 @@ ENV restyaboard_version=v0.1.3 ...@@ -6,11 +6,8 @@ ENV restyaboard_version=v0.1.3
# update & install package # update & install package
RUN \ RUN \
apt-get update -y &&\ apt-get update -y &&\
apt-get install -y bzip2 curl cron postgresql nginx &&\ apt-get install -y zip curl cron postgresql nginx &&\
apt-get install -y php5 php5-fpm php5-curl php5-pgsql php5-imagick libapache2-mod-php5 &&\ apt-get install -y php5 php5-fpm php5-curl php5-pgsql php5-imagick libapache2-mod-php5 &&\
apt-get install -y nodejs nodejs-legacy &&\
curl -L https://npmjs.org/install.sh | sh &&\
npm install -g grunt-cli &&\
echo "postfix postfix/mailname string example.com"\ echo "postfix postfix/mailname string example.com"\
| debconf-set-selections &&\ | debconf-set-selections &&\
echo "postfix postfix/main_mailer_type string 'Internet Site'"\ echo "postfix postfix/main_mailer_type string 'Internet Site'"\
...@@ -18,21 +15,17 @@ RUN \ ...@@ -18,21 +15,17 @@ RUN \
apt-get install -y postfix apt-get install -y postfix
# deploy app # deploy app
RUN mkdir /usr/share/nginx/html RUN \
curl -L -o /tmp/restyaboard.zip \
https://github.com/RestyaPlatform/board/releases/download/${restyaboard_version}/board-${restyaboard_version}.zip &&\
unzip /tmp/restyaboard.zip -d /usr/share/nginx/html &&\
rm /tmp/restyaboard.zip
# setting app
WORKDIR /usr/share/nginx/html WORKDIR /usr/share/nginx/html
RUN \ RUN \
curl -L -o /tmp/restyaboard.tar.gz \
https://github.com/RestyaPlatform/board/archive/${restyaboard_version}.tar.gz &&\
tar xzvf /tmp/restyaboard.tar.gz --strip-components 1 &&\
rm /tmp/restyaboard.tar.gz &&\
cp -R media /tmp/ &&\ cp -R media /tmp/ &&\
cp restyaboard.conf /etc/nginx/conf.d &&\ cp restyaboard.conf /etc/nginx/conf.d &&\
npm install &&\
grunt build:live &&\
rm -rf node_modules
# setting php-fpm
RUN \
sed -i 's/^.*listen.mode = 0660$/listen.mode = 0660/'\ sed -i 's/^.*listen.mode = 0660$/listen.mode = 0660/'\
/etc/php5/fpm/pool.d/www.conf &&\ /etc/php5/fpm/pool.d/www.conf &&\
sed -i 's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|'\ sed -i 's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|'\
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment