Commit 82ecc583 authored by Tomasz Walkowiak's avatar Tomasz Walkowiak

Merge branch 'Plwordnet_to_Rancher' into 'master'

Plwordnet to rancher

See merge request !4
parents b8e99477 0266000b
Pipeline #1624 passed with stages
in 1 minute and 46 seconds
......@@ -4,10 +4,11 @@ WORKDIR /home/worker
COPY ./src ./src
COPY ./main.py .
COPY ./requirements.txt .
COPY ./entrypoint.sh ./entrypoint.sh
COPY ./entrypoint.sh .
COPY ./info.json .
RUN python3.6 -m pip install -r requirements.txt
RUN ["chmod", "+x", "./entrypoint.sh"]
#CMD ["python3.6", "main.py", "service"]
CMD ["./entrypoint.sh"]
ENTRYPOINT ["./entrypoint.sh"]
#!/bin/sh
#cd /home/worker
if [ ! -d "model" ]; then
mkdir model
fi
if [ -z "$(ls -A model)" ]; then #if is empty download
echo "Downloading model"
wget http://minio.clarin-pl.eu/public/models/plwn_dump_27-03-2018.sqlite -O ./model/plwn_dump_27-03-2018.sqlite
......
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