Commit e064c6a4 authored by Indrek Jentson's avatar Indrek Jentson

Käskude ümberpaigutus

parent 1c258856
......@@ -39,9 +39,6 @@ RUN npm install -g forever
RUN mkdir -p /wrapper && mkdir -p /config && mkdir -p /wrapper/files && mkdir -p /wrapper/tmp && mkdir -p /wrapper/logs && \
cd /wrapper && \
git clone 'https://github.com/nostneji/kl-wrapper.git' && \
git clone 'https://gitlab.keeleressursid.ee/indrek-jentson/py_tokenizer.git' && \
cp py_tokenizer/config_dist.js . && \
cp py_tokenizer/tokenizer.py . && \
mv kl-wrapper/* . && \
mv kl-wrapper/.g* . && \
npm install && \
......@@ -50,6 +47,10 @@ echo "NPM is installed"
# SIIA ALLA lisa kõik installeerimise käsud, mis on vajalikud sisulist tööd tegeva tarkvara X paigaldamiseks.
# Tarkvara X paigaldamine algab
RUN git clone 'https://gitlab.keeleressursid.ee/indrek-jentson/py_tokenizer.git' && \
cp py_tokenizer/config_dist.js . && \
cp py_tokenizer/tokenizer.py .
# tokenizer.py jaoks on vajalik estnltk teek
RUN pip install estnltk
......@@ -62,4 +63,4 @@ EXPOSE 3003
VOLUME ["/config"]
VOLUME ["/wrapper/logs"]
CMD cd /wrapper && ./docker_start.sh
CMD cd /wrapper && ./docker_start.sh &
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