forked from ponchio/untrunc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
27 lines (21 loc) · 931 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# pull base image
FROM ubuntu
# install packaged dependencies
RUN apt-get update
RUN apt-get -y install libavformat-dev libavcodec-dev libavutil-dev unzip g++ wget make nasm zlib1g-dev
# download and extract
RUN wget https://www.github.com/ponchio/untrunc/archive/master.zip
RUN unzip master.zip
WORKDIR /untrunc-master
RUN wget https://github.com/libav/libav/archive/v12.3.zip && unzip v12.3.zip
# build libav
WORKDIR /untrunc-master/libav-12.3/
RUN ./configure && make
# build untrunc
WORKDIR /untrunc-master
RUN /usr/bin/g++ -o untrunc -I./libav-12.3 file.cpp main.cpp track.cpp atom.cpp mp4.cpp -L./libav-12.3/libavformat -lavformat -L./libav-12.3/libavcodec -lavcodec -L./libav-12.3/libavresample -lavresample -L./libav-12.3/libavutil -lavutil -lpthread -lz
# package / push the build artifact somewhere (dockerhub, .deb, .rpm, tell me what you want)
# ...
# execution
WORKDIR /untrunc-master
ENTRYPOINT ["./untrunc"]