forked from romancin/rclonebrowser-docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Dockerfile
83 lines (68 loc) · 2.05 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
#
# RcloneBrowser Dockerfile
#
FROM jlesage/baseimage-gui:alpine-3.12-glibc
# Define build arguments
ARG RCLONE_VERSION=current
# Define environment variables
ENV ARCH=amd64
# Define working directory.
WORKDIR /tmp
# Install Rclone Browser dependencies
RUN apk --no-cache add \
ca-certificates \
fuse \
wget \
qt5-qtbase \
qt5-qtbase-x11 \
libstdc++ \
libgcc \
dbus \
xterm \
&& cd /tmp \
&& wget -q https://downloads.rclone.org/rclone-current-linux-amd64.zip \
&& unzip /tmp/rclone-current-linux-amd64 \
&& mv /tmp/rclone-*-linux-amd64/rclone /usr/bin \
&& rm -r /tmp/rclone* && \
apk add --no-cache --virtual=build-dependencies \
build-base \
cmake \
make \
gcc \
git \
qt5-qtbase qt5-qtmultimedia-dev qt5-qttools-dev && \
# Compile RcloneBrowser
git clone https://github.com/kapitainsky/RcloneBrowser.git /tmp && \
mkdir /tmp/build && \
cd /tmp/build && \
cmake .. && \
cmake --build . && \
ls -l /tmp/build && \
cp /tmp/build/build/rclone-browser /usr/bin && \
# cleanup
apk del --purge build-dependencies && \
rm -rf /tmp/*
# Maximize only the main/initial window.
RUN \
sed-patch 's/<application type="normal">/<application type="normal" title="Rclone Browser">/' \
/etc/xdg/openbox/rc.xml
# Generate and install favicons.
RUN \
APP_ICON_URL=https://github.com/rclone/rclone/raw/master/graphics/logo/logo_symbol/logo_symbol_color_512px.png && \
install_app_icon.sh "$APP_ICON_URL"
# Add files.
COPY rootfs/ /
COPY VERSION /
# Set environment variables.
ENV APP_NAME="RcloneBrowser" \
S6_KILL_GRACETIME=8000
# Define mountable directories.
VOLUME ["/config"]
VOLUME ["/media"]
# Metadata.
LABEL \
org.label-schema.name="rclonebrowser" \
org.label-schema.description="Docker container for RcloneBrowser" \
org.label-schema.version="unknown" \
org.label-schema.vcs-url="https://github.com/DrMxrcy/rclonebrowser-docker" \
org.label-schema.schema-version="1.0"