-
Notifications
You must be signed in to change notification settings - Fork 7
/
Dockerfile
27 lines (26 loc) · 1.07 KB
/
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
FROM ubuntu:latest
RUN DEBIAN_FRONTEND=noninteractive apt -yq update
RUN DEBIAN_FRONTEND=noninteractive apt -yq upgrade
RUN DEBIAN_FRONTEND=noninteractive apt -yq install nasm util-linux curl xz-utils \
wkhtmltopdf bison flex \
libdvdread-dev libfreetype-dev libfreetype6-dev \
fonts-freefont-ttf xfonts-utils fonts-urw-base35 libxml2-dev
RUN DEBIAN_FRONTEND=noninteractive apt -yq install git autoconf automake \
build-essential libtool libjpeg62 \
libjpeg62-dev libpng16-16 libpng-dev libpng-tools mjpegtools imagemagick
RUN DEBIAN_FRONTEND=noninteractive apt -yq install ttf-mscorefonts-installer
RUN git clone --depth=1 https://github.com/fabnicol/dvda-author.git
WORKDIR dvda-author
RUN chmod +x autogen && /bin/bash autogen
RUN ./configure
RUN make PARALLEL=-j2
RUN cp -rf menu local/
RUN rm -rf /usr/local/* && cp -rf local/* /usr/local
RUN make install
RUN find . -maxdepth 1 -type d -exec rm -rf {} \;
RUN cp -rf /usr/local/menu .
RUN rm -rf /var/*
RUN rm -rf /usr/src/* /usr/include/* usr/local/include/*
RUN ldconfig
RUN echo "Build completed."
ENTRYPOINT ["dvda-author-dev"]