summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorac79b0c6 <[email protected]>2022-05-15 20:06:57 +0800
committerac79b0c6 <[email protected]>2022-05-15 20:06:57 +0800
commit02648c89ec30f5b5e0b2999e620ddcfdb44a8291 (patch)
tree79a77b8a77da6c8fc0bb954d6767d943117f9811
parent88c934e50008492d9ecae89a0e82fb4746c51735 (diff)
update
-rw-r--r--mkvtool/docker/Dockerfile10
1 files changed, 9 insertions, 1 deletions
diff --git a/mkvtool/docker/Dockerfile b/mkvtool/docker/Dockerfile
index 9a93467..d11b289 100644
--- a/mkvtool/docker/Dockerfile
+++ b/mkvtool/docker/Dockerfile
@@ -1,7 +1,7 @@
FROM alpine
RUN apk update && \
- apk add py3-fonttools mkvtoolnix ripgrep ffmpeg
+ apk add py3-fonttools mkvtoolnix ripgrep ffmpeg git cmake make gcc libc-dev libass-dev libpng-dev
RUN wget https://api.github.com/repos/MkvAutoSubset/MkvAutoSubset/releases/latest && \
VERSION=$(grep tag_name latest | cut -d '"' -f 4 | cut -d 'v' -f 2) && \
@@ -12,5 +12,13 @@ RUN wget https://api.github.com/repos/MkvAutoSubset/MkvAutoSubset/releases/lates
mv mkvtool /usr/local/bin/ && \
mkdir fonts
+RUN git clone https://github.com/Masaiki/ass2bdnxml.git && \
+ cd ass2bdnxml && \
+ cmake -Bbuild -DCMAKE_BUILD_TYPE=Release . && \
+ cmake --build build && \
+ cp build/libass2bdnxml /usr/local/bin/ && \
+ cd ~ && \
+ rm -rf ass2bdnxml
+
WORKDIR root
CMD ["sh", "-c", "[ -f ~/.mkvtool/caches/*.cache ] || mkvtool -cc -s /fonts ; sh"] \ No newline at end of file