forked from romancin/rclonebrowser-docker
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
60 lines (43 loc) · 1.33 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
#
# RcloneBrowser Dockerfile
#
FROM jlesage/baseimage-gui:debian-11-v4
LABEL org.opencontainers.image.authors="[email protected]"
# Set environment variables.
ENV APP_NAME="RcloneBrowser"
# Define build arguments
ARG RCLONE_VERSION=current
# Define environment variables
ENV ARCH=amd64
# Define working directory.
WORKDIR /tmp
# Install Rclone Browser dependencies
RUN add-pkg \
wget unzip fuse dbus xterm ca-certificates fonts-wqy-zenhei locales \
libgl1 libglib2.0-0 \
&& cd /tmp \
&& wget -q http://downloads.rclone.org/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 add-pkg \
git g++ cmake make qtdeclarative5-dev qtbase5-dev && \
# Compile RcloneBrowser
git clone https://github.com/kapitainsky/RcloneBrowser.git /tmp && \
mkdir /tmp/build && \
cd /tmp/build && \
cmake .. && \
cmake --build . && \
make install && \
# cleanup
rm -rf /tmp/*
RUN sed-patch 's/# en_US.UTF-8 UTF-8/en_US.UTF-8 UTF-8/' /etc/locale.gen && \
locale-gen
ENV LANG=en_US.UTF-8
# Add files.
COPY rootfs/ /
COPY VERSION /
COPY main-window-selection.jwmrc /etc/jwm/main-window-selection.jwmrc
# Define mountable directories.
VOLUME ["/config"]
VOLUME ["/media"]