diff --git a/Dockerfile b/Dockerfile index ad70fdf..2815fd3 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 +RUN sed -i 's/\r$//' /usr/local/bin/entrypoint.sh && chmod +x /usr/local/bin/entrypoint.sh + +USER ubuntu ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] CMD [] \ No newline at end of file diff --git a/README.md b/README.md index 0173e70..00519db 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"`. Language codes: https://github.com/tesseract-ocr/tessdata ### Run `sup2srt`