Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
Restyaboard
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Merge Requests
0
Merge Requests
0
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Ali Arshad
Restyaboard
Commits
ce0aa53e
Commit
ce0aa53e
authored
Mar 16, 2016
by
namikingsoft
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #12 from edouard-lopez/master
leverage docker caching mechanism and improve readability
parents
6f63d862
8d71679a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
23 deletions
+14
-23
Dockerfile
Dockerfile
+14
-23
No files found.
Dockerfile
View file @
ce0aa53e
...
@@ -4,34 +4,25 @@ FROM debian:wheezy-backports
...
@@ -4,34 +4,25 @@ FROM debian:wheezy-backports
ENV
restyaboard_version=v0.2
ENV
restyaboard_version=v0.2
# update & install package
# update & install package
RUN
\
RUN
apt-get update
--yes
apt-get update
-y
&&
\
RUN
apt-get install
--yes
zip curl cron postgresql nginx
apt-get install
-y
zip curl cron postgresql nginx
&&
\
RUN
apt-get install
--yes
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
&&
\
RUN
echo
"postfix postfix/mailname string example.com"
| debconf-set-selections
\
echo
"postfix postfix/mailname string example.com"
\
&&
echo
"postfix postfix/main_mailer_type string 'Internet Site'"
| debconf-set-selections
\
| debconf-set-selections
&&
\
&&
apt-get install
-y
postfix
echo
"postfix postfix/main_mailer_type string 'Internet Site'"
\
| debconf-set-selections
&&
\
apt-get install
-y
postfix
# deploy app
# deploy app
RUN
\
RUN
curl
-L
-o
/tmp/restyaboard.zip https://github.com/RestyaPlatform/board/releases/download/
${
restyaboard_version
}
/board-
${
restyaboard_version
}
.zip
\
curl
-L
-o
/tmp/restyaboard.zip
\
&&
unzip /tmp/restyaboard.zip
-d
/usr/share/nginx/html
\
https://github.com/RestyaPlatform/board/releases/download/
${
restyaboard_version
}
/board-
${
restyaboard_version
}
.zip
&&
\
&&
rm /tmp/restyaboard.zip
unzip /tmp/restyaboard.zip
-d
/usr/share/nginx/html
&&
\
rm /tmp/restyaboard.zip
# setting app
# setting app
WORKDIR
/usr/share/nginx/html
WORKDIR
/usr/share/nginx/html
RUN
\
RUN
cp
-R
media /tmp/
\
cp
-R
media /tmp/
&&
\
&&
cp restyaboard.conf /etc/nginx/conf.d
\
cp restyaboard.conf /etc/nginx/conf.d
&&
\
&&
sed
-i
's/^.*listen.mode = 0660$/listen.mode = 0660/'
/etc/php5/fpm/pool.d/www.conf
\
sed
-i
's/^.*listen.mode = 0660$/listen.mode = 0660/'
\
&&
sed
-i
's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|'
/etc/nginx/conf.d/restyaboard.conf
\
/etc/php5/fpm/pool.d/www.conf
&&
\
&&
sed
-i
-e
"/fastcgi_pass/a fastcgi_param HTTPS 'off';"
/etc/nginx/conf.d/restyaboard.conf
sed
-i
's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|'
\
/etc/nginx/conf.d/restyaboard.conf
&&
\
sed
-i
-e
"/fastcgi_pass/a fastcgi_param HTTPS 'off';"
\
/etc/nginx/conf.d/restyaboard.conf
# volume
# volume
VOLUME
/usr/share/nginx/html/media
VOLUME
/usr/share/nginx/html/media
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment