Dockerfile 800 Bytes
Newer Older
priit's avatar
priit committed
1
2
#   docker build -t kl_wrapper .
#   docker run --name kl_redis --rm --restart=no redis
priit's avatar
priit committed
3
#   docker run --name kl_wrapper -d --link kl_redis:redis -p 3000:3000 -v /wrapper/concat/:/config kl_wrapper
priit's avatar
priit committed
4
5
6
#   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
11
12
13
RUN apt-get update && \
    apt-get -y install curl && \
    curl -sL https://deb.nodesource.com/setup | sudo bash - && \
    apt-get -y install python build-essential nodejs && \
priit's avatar
priit committed
14
    apt-get -y install git && echo "Installed"
priit's avatar
priit committed
15

priit's avatar
priit committed
16
RUN npm install -g forever
priit's avatar
priit committed
17

priit's avatar
priit committed
18
19
20
21
22
23
RUN mkdir -p /src && mkdir -p /config && \
cd /src && \
git clone 'https://github.com/BitWeb/keeleliin-wrapper-service.git' . && \
npm install && \
pwd && \
ls -la && \
priit's avatar
priit committed
24
echo "NPM is installed 3"
priit's avatar
priit committed
25

priit's avatar
priit committed
26
#Expose port
priit's avatar
priit committed
27
28
EXPOSE  3000

priit's avatar
priit committed
29
VOLUME ["/config"]
priit's avatar
priit committed
30

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