Add work around concurrency problems

This commit is contained in:
RobinSchaefer 2020-02-04 16:51:38 +01:00
parent 9c31d604e9
commit 1a20fe8f38

View file

@ -82,6 +82,9 @@ COPY xsd/* /usr/share/xml/
RUN pip3 install --no-cache-dir pipdeptree && \
pipdeptree -w fail
# XXX Work around concurrency problems(?)
RUN sed -i 's#num_cores *= *cpu_count()#num_cores = 1#' /usr/local/lib/python3.6/dist-packages/qurator/sbb_textline_detector/main.py
WORKDIR /data
CMD ["/usr/bin/my_ocrd_workflow"]