Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
keeleliin
keeleliin-wrapper
Commits
d8d617bb
Commit
d8d617bb
authored
Nov 04, 2015
by
priit
Browse files
Dockeri alge
parent
6d79644a
Changes
2
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
d8d617bb
...
...
@@ -5,23 +5,21 @@
# docker rm kl_wrapper
#
FROM
ubuntu:14.04
FROM
debian:jessie
RUN
apt-get update
&&
\
apt-get
-y
install
curl
&&
\
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"
RUN
npm
install
-g
forever
RUN
mkdir
-p
/src
&&
mkdir
-p
/config
&&
\
RUN
mkdir
-p
/src
&&
mkdir
-p
/config
&&
mkdir
-p
/wrapper/files
&&
mkdir
-p
/wrapper/tmp
&&
\
cd
/src
&&
\
git clone
'https://github.com/BitWeb/keeleliin-wrapper-service.git'
.
&&
\
npm
install
&&
\
pwd
&&
\
ls
-la
&&
\
echo
"NPM is installed 3"
echo
"NPM is installed 4"
#Expose port
EXPOSE
3000
...
...
docker_start.sh
View file @
d8d617bb
...
...
@@ -10,4 +10,5 @@ if [ ! -f /src/config.js ]; then
cp
-R
-u
-p
/src/config_dist.js /src/config.js
fi
forever /src/app.js
\ No newline at end of file
forever /src/app.js
tail
\ No newline at end of file
Write
Preview
Supports
Markdown
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