Dockerfile 626 Bytes
Newer Older
priit's avatar
priit committed
1
2
3
4
5
6
#   docker build -t kl_wrapper .
#   docker run --name kl_redis --rm --restart=no redis
#   docker run --name kl_wrapper -d -it --link kl_redis:redis -p 3000:3000 -v /config:/config -v /logs:/logs kl_wrapper
#   docker kill kl_wrapper
#   docker rm kl_wrapper
#
priit's avatar
priit committed
7

priit's avatar
priit committed
8
FROM    ubuntu:14.04
priit's avatar
priit committed
9

priit's avatar
priit committed
10
RUN apt-get update && apt-get -y install nodejs npm git
priit's avatar
priit committed
11

priit's avatar
priit committed
12
RUN npm install -g forever
priit's avatar
priit committed
13

priit's avatar
priit committed
14
15
16
RUN mkdir -p /src
RUN cd /src && git clone 'https://github.com/BitWeb/keeleliin-wrapper-service.git' . && echo "Git is cloned 1"
RUN cd /src && npm install && echo "NPM is installed 1"
priit's avatar
priit committed
17

priit's avatar
priit committed
18
#Expose port
priit's avatar
priit committed
19
20
EXPOSE  3000

priit's avatar
priit committed
21
VOLUME ["/src"]
priit's avatar
priit committed
22

priit's avatar
priit committed
23
CMD /./src/docker_start.sh