Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
smarthec
smarthec_backend
Commits
c5b7ddbb
Commit
c5b7ddbb
authored
Jul 07, 2021
by
Robert Sachunsky
Browse files
pass more envvars to entrypoint
parent
64f57c6a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
c5b7ddbb
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment