lfoppiano's picture
Update Dockerfile
2e53cb2 verified
raw
history blame
895 Bytes
FROM lfoppiano/grobid-evaluation:latest
USER root
RUN mkdir -m 777 -p /opt/grobid/grobid-home/tmp
RUN mkdir -m 777 -p /opt/grobid/logs
RUN chmod -R uog+rw /opt/grobid
RUN chmod -R uog+rw /data/db
COPY --chown=lfoppiano grobid.yaml /opt/grobid/grobid-home/config/grobid.yaml
# Evaluation data
RUN mkdir -m 777 -p /opt/grobid/evaluation
WORKDIR /opt/grobid
RUN git lfs install && git clone https://huggingface.co/datasets/sciencialab/grobid-evaluation evaluation
VOLUME ["/opt/grobid/grobid-home/tmp"]
WORKDIR /opt/grobid
CMD ["/bin/bash", "-c", "./gradlew jatsEval -Pp2t=/opt/grobid/evaluation/PMC_sample_1943 -Prun=1 -PfileRatio=1; ./gradlew jatsEval -Pp2t=/opt/grobid/evaluation/biorxiv-10k-test-2000 -Prun=1 -PfileRatio=1; ./gradlew jatsEval -Pp2t=/opt/grobid/evaluation/eLife_984 -Prun=1 -PfileRatio=1; ./gradlew jatsEval -Pp2t=/opt/grobid/evaluation/PLOS_1000 -Prun=1 -PfileRatio=1;"]