forked from kyzima-spb/docker-tixati
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
48 lines (35 loc) · 1.42 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
FROM debian:buster-slim
LABEL maintainer="Kirill Vercetti <[email protected]>"
ENV DEBIAN_FRONTEND noninteractive
ARG UID=1000
ARG GID=1000
ARG TIXATI_VERSION=2.74
RUN apt update
RUN set -x \
&& apt install -yq --no-install-recommends wget \
&& \
download_url="https://download2.tixati.com/download/tixati_${TIXATI_VERSION}-1_amd64.deb"; \
echo "Checking for package existence..."; \
wget -q --no-check-certificate --method=HEAD $download_url || { \
echo "Version ${TIXATI_VERSION} of the package was not found."; \
exit 1; \
} \
&& wget --no-check-certificate -qO /tmp/tixati.deb $download_url \
&& dpkg -i /tmp/tixati.deb || true \
&& apt install -yqf --no-install-recommends \
&& apt install -yq --no-install-recommends wmctrl openbox xvfb x11vnc locales \
&& rm /tmp/tixati.deb \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
RUN mkdir /tmp/.X11-unix \
&& chmod 1777 /tmp/.X11-unix
RUN groupadd -g $GID tixati \
&& useradd -u $UID -g $GID -s /bin/bash -m tixati \
&& /bin/bash -c 'mkdir -p /home/tixati/{.tixati,Desktop/{downloads,torrent-files}}' \
&& chown -R tixati:tixati /home/tixati
COPY ./menu.xml /var/lib/openbox/debian-menu.xml
COPY ./entrypoint.sh /entrypoint.sh
USER tixati
VOLUME /home/tixati/.tixati /home/tixati/Desktop/downloads /home/tixati/Desktop/torrent-files
STOPSIGNAL SIGTERM
ENTRYPOINT "/entrypoint.sh"