forked from Giftie/docker-mediaelch
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathDockerfile
84 lines (67 loc) · 2.71 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
FROM jlesage/baseimage-gui:ubuntu-18.04-v3
RUN apt-get update -y
RUN apt-get upgrade -y
# Required for `add-apt-repository`
RUN apt-get install -y software-properties-common
# Add the repository to your system
RUN add-apt-repository ppa:mediaelch/mediaelch-stable
RUN apt-get update -y
# Install MediaElch
RUN apt-get install -y mediaelch
# MediaElch requires a more modern GCC:
#RUN add-apt-repository ppa:ubuntu-toolchain-r/test
#RUN apt-get update -y
#RUN apt-get install -y g++-8 gcc-8
#RUN update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-8 90
#RUN update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-8 90
# Build tools and other libraries
#RUN apt-get install -y build-essential git libcurl4-openssl-dev
#RUN apt-get install -y libmediainfo-dev
# ffmpeg is required at runtime to create random screenshots
RUN apt-get install -y ffmpeg
# Qt (alternative: download and install Qt from its official website)
#RUN apt-get install -y qt5-default qtmultimedia5-dev qtdeclarative5-dev qtdeclarative5-controls-plugin qtdeclarative5-models-plugin
# Get and Build
#RUN git clone https://github.com/Komet/MediaElch.git
#RUN cd MediaElch
#RUN git submodule update --init
#RUN mkdir build && cd $_
#RUN qmake ..
#RUN make -j4
# Install
#RUN make install
# Install SSH server
#RUN apt-get install -y openssh-server
#RUN mkdir /var/run/sshd
# Create user
RUN adduser --disabled-password --gecos "" mediaelch
# Configuration SSH
#RUN sed -ri 's/^PermitRootLogin\s+.*/PermitRootLogin no/' /etc/ssh/sshd_config
#RUN sed -ri 's/UsePAM yes/#UsePAM yes/g' /etc/ssh/sshd_config
#RUN mkdir -p /home/mediaelch/.ssh && chown mediaelch:mediaelch /home/mediaelch/.ssh && chmod 700 /home/mediaelch/.ssh
# Entrypoint
COPY entrypoint.sh /usr/local/bin/docker-entrypoint.sh
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
RUN apt-get install -y locales
RUN locale-gen en_US.UTF-8
RUN update-locale LANG=en_US.UTF-8
ENV LANG en_US.UTF-8
ENV LANGUAGE en_US:en
ENV LC_ALL en_US.UTF-8
RUN echo 'export LC_ALL=en_US.UTF-8' >> /home/mediaelch/.profile
RUN echo 'export LANG=en_US.UTF-8' >> /home/mediaelch/.profile
RUN echo 'export LANGUAGE=en_US.UTF-8' >> /home/mediaelch/.profile
RUN echo 'export LC_ALL=en_US.UTF-8' >> /home/mediaelch/.bashrc
RUN echo 'export LANG=en_US.UTF-8' >> /home/mediaelch/.bashrc
RUN echo 'export LANGUAGE=en_US.UTF-8' >> /home/mediaelch/.bashrc
#EXPOSE 22
#VOLUME /movies /shows /home/mediaelch/.config/kvibes /home/mediaelch/.ssh/authorized_keys
# Define mountable directories.
ENV APP_NAME="MediaElch"
ENV DISPLAY_WIDTH="1600"
ENV DISPLAY_HEIGHT="900"
VOLUME ["/movies"]
VOLUME ["/home/mediaelch/.config/kvibes"]
COPY startapp.sh /startapp.sh
#ENTRYPOINT ["/usr/local/bin/docker-entrypoint.sh"]
#CMD ["/usr/sbin/sshd", "-D"]