-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
34 lines (27 loc) · 1.15 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
28
29
30
31
32
33
34
FROM ubuntu:latest
MAINTAINER anthony kitchin
# Install Java.
RUN \
apt-get install -y software-properties-common && \
echo oracle-java7-installer shared/accepted-oracle-license-v1-1 select true | debconf-set-selections && \
add-apt-repository -y ppa:webupd8team/java && \
add-apt-repository -y ppa:stebbins/handbrake-git-snapshots && \
apt-get update && \
apt-get install -y oracle-java7-installer handbrake-cli curl unzip maven && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk7-installer
RUN echo "deb http://download.videolan.org/pub/debian/stable/ /" > /etc/apt/sources.list.d/vlc-libdvdcss.list; \
echo "deb-src http://download.videolan.org/pub/debian/stable/ /" >> /etc/apt/sources.list.d/vlc-libdvdcss.list; \
wget -O - http://download.videolan.org/pub/debian/videolan-apt.asc | sudo apt-key add -
RUN \
apt-get update && \
apt-get install -y \
libdvdcss2 && \
rm -rf /var/lib/apt/lists/* && \
rm -rf /var/cache/oracle-jdk7-installer
ADD script.sh /
# Define working directory.
VOLUME /data
# Define commonly used JAVA_HOME variable
ENV JAVA_HOME /usr/lib/jvm/java-7-oracle
CMD ["bash", "-c", "/script.sh"]