Commit c5b7ddbb authored by Robert Sachunsky's avatar Robert Sachunsky
Browse files

pass more envvars to entrypoint

parent 64f57c6a
......@@ -90,9 +90,15 @@ ENV MDL=Sonstige
ENV TIMEOUT=200
# number of parallel worker processes
ENV WORKERS=1
# number of shared GPU clients (should be equal WORKERS)
ENV MRCNNPROCS=1
CMD make -I /usr/share/workflow-configuration -f /usr/share/workflow-configuration/smarthec-sparse-tesseract-deu.mk server MDL=$MDL PORT=7001 HOST=0.0.0.0 TIMEOUT=$TIMEOUT WORKERS=$WORKERS MRCNNPROCS=$MRCNNPROCS
# number of shared GPU clients on this server (should be smaller WORKERS)
ENV CUDA_WORKERS=1
# number of shared GPU clients on this GPU
ENV MRCNNPROCS=3
# workflow configuration makefile to start server for
ENV WORKFLOW=smarthec-sparse-tesseract-deu
# bad context prediction requires lowering layout prediction threshold
ENV MIN_CONFIDENCE=0.0
CMD make -I /usr/share/workflow-configuration -f /usr/share/workflow-configuration/$WORKFLOW.mk server MDL=$MDL PORT=7001 HOST=0.0.0.0 TIMEOUT=$TIMEOUT WORKERS=$WORKERS MRCNNPROCS=$MRCNNPROCS CUDA_WORKERS=$CUDA_WORKERS MIN_CONFIDENCE=$MIN_CONFIDENCE
# start with `docker run -p N:7001` and query with `ocrd workflow client -p N`
EXPOSE 7001
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