Skip to content

Commit

Permalink
Add multi-staged dockerfile to build VobSub2SRT
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Apr 7, 2020
1 parent 0ba6e25 commit 798688e
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions packaging/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
#
# To build for arm, see https://www.docker.com/blog/getting-started-with-docker-for-arm-on-linux/

ARG VERSION=v1.0pre7
ARG TARGET=debian

FROM alpine AS source
RUN apk add git
ARG VERSION
RUN git clone --depth=1 -b $VERSION https://github.com/ruediger/VobSub2SRT /source

FROM debian:buster AS build-debian
RUN apt update && apt install -y libtiff5-dev libtesseract-dev tesseract-ocr-eng build-essential cmake pkg-config

FROM build-$TARGET AS build
WORKDIR /build
COPY --from=source /source .
RUN ./configure
RUN make
RUN make install

0 comments on commit 798688e

Please sign in to comment.