Skip to content

Commit

Permalink
Add ffmpeg tesseract-ocr to Docker.min (#184)
Browse files Browse the repository at this point in the history
Thanks to @nmaiti
  • Loading branch information
nmaiti authored Jun 2, 2021
1 parent a551fa8 commit b21b048
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dockerfile.min
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ ENV PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1
ENV VENV_PATH="/venv"
ENV PATH="$VENV_PATH/bin:$PATH"
RUN apk add --no-cache libffi libpq ffmpeg tesseract-ocr
WORKDIR /app


Expand All @@ -12,15 +13,14 @@ ENV PIP_DEFAULT_TIMEOUT=100 \
PIP_DISABLE_PIP_VERSION_CHECK=1 \
PIP_NO_CACHE_DIR=1
ENV CRYPTOGRAPHY_DONT_BUILD_RUST=1
RUN apk add --no-cache gcc libffi-dev musl-dev postgresql-dev postgresql-dev musl-dev zlib zlib-dev jpeg-dev
RUN apk add --no-cache gcc libffi-dev musl-dev postgresql-dev zlib zlib-dev jpeg-dev
RUN pip install --upgrade pip poetry
RUN python -m venv /venv
COPY . .
RUN poetry build && /venv/bin/pip install dist/*.whl


FROM base as final
RUN apk add --no-cache libffi libpq
COPY --from=builder /venv /venv
COPY LICENSE LICENSE
CMD tgcf --loud

0 comments on commit b21b048

Please sign in to comment.