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
dfce27f6
Commit
dfce27f6
authored
Oct 13, 2015
by
Tsubasa Namiki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use built zip from releases #4
parent
0dfeb04e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
15 deletions
+8
-15
Dockerfile
Dockerfile
+8
-15
No files found.
Dockerfile
View file @
dfce27f6
...
...
@@ -6,11 +6,8 @@ ENV restyaboard_version=v0.1.3
# update & install package
RUN
\
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
nodejs nodejs-legacy
&&
\
curl
-L
https://npmjs.org/install.sh | sh
&&
\
npm install
-g
grunt-cli
&&
\
echo
"postfix postfix/mailname string example.com"
\
| debconf-set-selections
&&
\
echo
"postfix postfix/main_mailer_type string 'Internet Site'"
\
...
...
@@ -18,21 +15,17 @@ RUN \
apt-get install
-y
postfix
# 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
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 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/'
\
/etc/php5/fpm/pool.d/www.conf
&&
\
sed
-i
's|^.*fastcgi_pass.*$|fastcgi_pass unix:/var/run/php5-fpm.sock;|'
\
...
...
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