Commit 79a14782 authored by Indrek Jentson's avatar Indrek Jentson

Parandused

parent 41776e73
...@@ -36,13 +36,14 @@ RUN npm install -g forever ...@@ -36,13 +36,14 @@ RUN npm install -g forever
# Valmistame ette koodi, mida me DOCKERis kasutama hakkame. Siinkohal peaks plaanima, et mis failid kus kataloogis peaks olema # Valmistame ette koodi, mida me DOCKERis kasutama hakkame. Siinkohal peaks plaanima, et mis failid kus kataloogis peaks olema
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 && mkdir -p /wrapper/logs && \
cd /wrapper && \ cd /wrapper && \
git clone 'https://github.com/nostneji/kl-wrapper.git' && \ git clone 'https://github.com/nostneji/kl-wrapper.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 kl-wrapper/* . && \ mv kl-wrapper/* . && \
mv kl-wrapper/.g* . && \
npm install && \ npm install && \
echo "NPM is installed" echo "NPM is installed"
...@@ -59,5 +60,6 @@ RUN pip install estnltk ...@@ -59,5 +60,6 @@ RUN pip install estnltk
EXPOSE 3003 EXPOSE 3003
VOLUME ["/config"] VOLUME ["/config"]
VOLUME ["/wrapper/logs"]
CMD /wrapper/docker_start.sh CMD cd /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