Commit 39255de5 authored by Indrek Jentson's avatar Indrek Jentson

Muudatused Dockerfile's

parent 2ed9505e
...@@ -22,7 +22,8 @@ FROM debian:jessie ...@@ -22,7 +22,8 @@ FROM debian:jessie
RUN apt-get update && \ RUN apt-get update && \
apt-get -y install curl sudo && \ apt-get -y install curl sudo && \
curl -sL https://deb.nodesource.com/setup | sudo bash - && \ curl -sL https://deb.nodesource.com/setup | sudo bash - && \
apt-get -y install python build-essential nodejs wget && \ apt-get -y install build-essential nodejs wget && \
apt-get -y install g++ python3-dev python-dev libpython3-dev libpython-dev python3-pip python3-wheel python3-numpy swig && \
apt-get -y install git && echo "Installed 2" apt-get -y install git && echo "Installed 2"
# Tagame värskeima PIPi olemasolu # Tagame värskeima PIPi olemasolu
...@@ -37,10 +38,11 @@ RUN npm install -g forever ...@@ -37,10 +38,11 @@ RUN npm install -g forever
RUN mkdir -p /wrapper && mkdir -p /config && mkdir -p /wrapper/files && mkdir -p /wrapper/tmp && \ RUN mkdir -p /wrapper && mkdir -p /config && mkdir -p /wrapper/files && mkdir -p /wrapper/tmp && \
cd /wrapper && \ cd /wrapper && \
git clone 'https://github.com/BitWeb/keeleliin-wrapper-service.git' . && \ git clone 'https://github.com/BitWeb/keeleliin-wrapper-service.git' && \
git clone 'https://gitlab.keeleressursid.ee/indrek-jentson/py_tokenizer.git' && \ git clone 'https://gitlab.keeleressursid.ee/indrek-jentson/py_tokenizer.git' && \
cp py_tokenizer/config_dist.js . && \ cp py_tokenizer/config_dist.js . && \
cp py_tokenizer/tokenizer.py . && \ cp py_tokenizer/tokenizer.py . && \
mv keeleliin-wrapper-service/* . && \
npm install && \ npm install && \
echo "NPM is installed" echo "NPM is installed"
...@@ -58,4 +60,4 @@ EXPOSE 3003 ...@@ -58,4 +60,4 @@ EXPOSE 3003
VOLUME ["/config"] VOLUME ["/config"]
CMD /./wrapper/docker_start.sh CMD /./wrapper/docker_start.sh
\ 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