forked from ruediger/VobSub2SRT
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add multi-staged dockerfile to build VobSub2SRT
- Loading branch information
Showing
1 changed file
with
20 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |