From 45e753ff37f4a5743185edb38ba55aad8223c8f5 Mon Sep 17 00:00:00 2001 From: Konstantin Baierer Date: Mon, 4 Nov 2019 16:54:05 +0100 Subject: [PATCH] docker: entrypoint and cmd should be empty OCR-D/ocrd_tesserocr#84 --- docker.md | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/docker.md b/docker.md index 0f48673..532c5d0 100644 --- a/docker.md +++ b/docker.md @@ -15,8 +15,11 @@ in a spec-conformant way. Besides, it locally installed and containerized ## Shell entrypoint -The `ENTRYPOINT` should a be a shell call not the tool provided. A non-shell -entrypoint would restrict MP to just one tool. +No `CMD` should be provided. + +No `ENTRYPOINT` should be provided. + +If `CMD` or `ENTRYPOINT` are provided, they should be empty arrays. ## `/data` as volume @@ -30,6 +33,8 @@ FROM ocrd:core VOLUME ["/data"] # RUN-commands to install requirements, build and install +# e.g. +# apt-get install -y curl -ENTRYPOINT ["/bin/sh", "-c"] +ENTRYPOINT [] ```