Skip to content

Commit

Permalink
build: fixes docker images build
Browse files Browse the repository at this point in the history
  • Loading branch information
ratoaq2 committed Feb 5, 2023
1 parent eb7160a commit 847950c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 4 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.11-slim as tesseract-image

ENV TESSDATA_VERSION=4.1.0
ENV TESSDATA_VERSION=main

RUN apt-get update \
&& apt-get install -y --no-install-recommends git \
Expand Down Expand Up @@ -48,11 +48,12 @@ ENV PYTHONFAULTHANDLER=1 \
TESSDATA_PREFIX=/usr/src/tessdata

RUN apt-get update \
&& apt-get install -y --no-install-recommends curl software-properties-common \
&& apt-get install -y --no-install-recommends curl gpg \
&& curl -sSL https://notesalexp.org/debian/alexp_key.asc | gpg --dearmor > /etc/apt/trusted.gpg.d/alex-p-ubuntu-tesseract-ocr5.gpg \
&& curl -sSL -o /usr/share/keyrings/gpg-pub-moritzbunkus.gpg https://mkvtoolnix.download/gpg-pub-moritzbunkus.gpg \
&& echo "deb https://notesalexp.org/tesseract-ocr5/bullseye/ bullseye main" >> /etc/apt/sources.list \
&& echo "deb [signed-by=/usr/share/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/debian/ bullseye main" >> /etc/apt/sources.list.d/mkvtoolnix.download.list \
&& echo "deb-src [signed-by=/usr/share/keyrings/gpg-pub-moritzbunkus.gpg] https://mkvtoolnix.download/debian/ bullseye main" >> /etc/apt/sources.list.d/mkvtoolnix.download.list \
&& add-apt-repository -y ppa:alex-p/tesseract-ocr5 \
&& apt-get update \
&& apt-get install -y --no-install-recommends ffmpeg libsm6 libxext6 tesseract-ocr mkvtoolnix \
&& apt-get clean \
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "pgsrip"
version = "0.1.5"
version = "0.1.6"
description = "Rip your PGS subtitles"
authors = [
"Rato",
Expand Down

0 comments on commit 847950c

Please sign in to comment.