Spaces:
Paused
Paused
FROM lfoppiano/grobid-evaluation:latest | |
USER root | |
RUN apt-get update && \ | |
apt-get -y --no-install-recommends install unzip wget git git-lfs | |
RUN mkdir -m 777 -p /opt/grobid/grobid-home/tmp | |
RUN mkdir -m 777 -p /opt/grobid/logs | |
RUN chmod -R 777 /opt/grobid | |
RUN chmod -R uog+rw /data/db | |
RUN git config --global --add safe.directory /opt/grobid | |
# CRF | |
COPY --chown=lfoppiano grobid.yaml /opt/grobid/grobid-home/config/grobid.yaml | |
# official evaluation configuration | |
COPY --chown=lfoppiano grobid-full.yml /opt/grobid/grobid-home/config/grobid.yaml | |
RUN mkdir -p /opt/grobid/evaluation/ | |
WORKDIR /opt/grobid | |
RUN git lfs install && git clone --depth 1 https://huggingface.co/datasets/sciencialab/grobid-evaluation evaluation | |
RUN chmod -R uog+rw /opt/grobid/evaluation | |
COPY --chown=lfoppiano service.py /opt/grobid/service.py | |
WORKDIR /opt/grobid | |
CMD ["/bin/bash", "-c", "python service.py"] |