Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 []
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down