Spaces:
Paused
Paused
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 777 /opt/grobid | |
RUN chmod -R uog+rw /data/db | |
COPY --chown=lfoppiano grobid.yaml /opt/grobid/grobid-home/config/grobid.yaml | |
RUN ls -R /opt/grobid/evaluation/ | |
WORKDIR /opt/grobid | |
RUN git lfs install && git clone --deep 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"] |