Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
keeleliin-wrapper
Commits
e3c3aa26
Commit
e3c3aa26
authored
Dec 16, 2015
by
priit
Browse files
docker kirjeldus
parent
dbce44e2
Changes
2
Show whitespace changes
Inline
Side-by-side
Dockerfile
View file @
e3c3aa26
...
...
@@ -11,7 +11,7 @@ RUN apt-get update && \
apt-get
-y
install
curl
sudo
&&
\
curl
-sL
https://deb.nodesource.com/setup |
sudo
bash -
&&
\
apt-get
-y
install
python build-essential nodejs
&&
\
apt-get
-y
install
git
&&
echo
"Installed"
apt-get
-y
install
git
&&
echo
"Installed
2
"
RUN
npm
install
-g
forever
...
...
docker_start.sh
View file @
e3c3aa26
#!/bin/bash
cd
/src
git pull
npm
install
if
[
!
-f
/config/config.js
]
;
then
cp
-R
-u
-p
/src/config_dist.js /config/config.js
fi
...
...
@@ -12,6 +16,7 @@ if [ ! -f /src/config.js ]; then
cp
-R
-u
-p
/src/config_dist.js /src/config.js
fi
forever start /src/app.js
forever start
-l
/forever.log
/src/app.js
forever list
tail
\ No newline at end of file
tail
-f
/forever.log
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