From 8a398e805621a080499da92b7d55f7c1d4a99c5d Mon Sep 17 00:00:00 2001 From: Cullen Knight Date: Wed, 4 Feb 2026 19:48:38 -0600 Subject: [PATCH 1/3] fix changing user too soon --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index ad70fdf..b9e34d9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -54,10 +54,11 @@ RUN apt-get update && \ rm -rf /var/lib/apt/lists/* RUN mkdir -p /app && chown -R ubuntu:ubuntu /app -USER ubuntu COPY --chown=ubuntu:ubuntu entrypoint.sh /usr/local/bin/entrypoint.sh RUN chmod +x /usr/local/bin/entrypoint.sh +USER ubuntu + ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] CMD [] \ No newline at end of file From 169f92c219db40b16e8be68bae990c4ce5cab4e0 Mon Sep 17 00:00:00 2001 From: Cullen Knight Date: Wed, 4 Feb 2026 19:58:32 -0600 Subject: [PATCH 2/3] update readme to show how to install all languages --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 0173e70..8251d1d 100644 --- a/README.md +++ b/README.md @@ -73,6 +73,7 @@ Optional: include additional Tesseract languages at build time: ```bash docker build --build-arg TESSERACT_LANGS="eng spa deu" -t sup2srt . ``` +To install all Tesseract languages, use `TESSERACT_LANGS="all"` (this expands to the `tesseract-ocr-all` package on Ubuntu). Language codes: https://github.com/tesseract-ocr/tessdata ### Run `sup2srt` From 25238d3cfdcc9b6c0e1d27864d688476b7a083fb Mon Sep 17 00:00:00 2001 From: Cullen Knight Date: Wed, 4 Feb 2026 20:01:51 -0600 Subject: [PATCH 3/3] sanitize entrypoint for building on windows host --- Dockerfile | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9e34d9..2815fd3 100644 --- a/Dockerfile +++ b/Dockerfile @@ -56,7 +56,7 @@ RUN apt-get update && \ RUN mkdir -p /app && chown -R ubuntu:ubuntu /app COPY --chown=ubuntu:ubuntu entrypoint.sh /usr/local/bin/entrypoint.sh -RUN chmod +x /usr/local/bin/entrypoint.sh +RUN sed -i 's/\r$//' /usr/local/bin/entrypoint.sh && chmod +x /usr/local/bin/entrypoint.sh USER ubuntu diff --git a/README.md b/README.md index 8251d1d..00519db 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ Optional: include additional Tesseract languages at build time: ```bash docker build --build-arg TESSERACT_LANGS="eng spa deu" -t sup2srt . ``` -To install all Tesseract languages, use `TESSERACT_LANGS="all"` (this expands to the `tesseract-ocr-all` package on Ubuntu). +To install all Tesseract languages, use `TESSERACT_LANGS="all"`. Language codes: https://github.com/tesseract-ocr/tessdata ### Run `sup2srt`