Commit d8d617bb authored by priit's avatar priit

Dockeri alge

parent 6d79644a
......@@ -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
......
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment