# # RcloneBrowser Dockerfile # FROM jlesage/baseimage-gui:alpine-3.12-glibc # Define build arguments ARG RCLONE_VERSION=v1.59.2 # 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 https://downloads.rclone.org/${RCLONE_VERSION}/rclone-${RCLONE_VERSION}-linux-${ARCH}.zip && \ unzip /tmp/rclone-${RCLONE_VERSION}-linux-${ARCH}.zip && \ mv /tmp/rclone-*-linux-${ARCH}/rclone /usr/bin && \ rm -r /tmp/rclone* RUN apk add --no-cache --virtual=build-dependencies \ build-base \ cmake \ make \ gcc \ git \ qt5-qtbase qt5-qtmultimedia-dev qt5-qttools-dev && \ git clone https://codeberg.org/ProminentRetail/Rclone-Browser.git /tmp && \ mkdir /tmp/build && \ cd /tmp/build && \ cmake .. && \ cmake --build . && \ ls -l /tmp/build && \ cp /tmp/build/build/rclone-browser /usr/bin && \ apk del --purge build-dependencies && \ rm -rf /tmp/* # Maximize only the main/initial window. RUN \ sed-patch 's///' \ /etc/xdg/openbox/rc.xml # Generate and install favicons / do not attempt due to node packages obsoletion. #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/romancin/rclonebrowser-docker" \ org.label-schema.schema-version="1.0"