-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathDockerfile
38 lines (33 loc) · 1006 Bytes
/
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
FROM linuxserver/jellyfin:latest
LABEL maintainer="CooliMC"
ARG RCLONE_VERSION="v1.56.2"
ARG OVERLAY_VERSION="v1.22.1.0"
ARG OVERLAY_ARCH="amd64"
ENV DEBUG="false" \
GOPATH="/go" \
GO111MODULE="on" \
RemotePath="mediaefs:" \
MountPoint="/mnt/mediaefs" \
ConfigDir="/rconfig" \
ConfigName="rclone.conf" \
MountCommands="--allow-other --allow-non-empty"
## Ubuntu with Go Git
RUN echo "Download and install packages" \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-get install -y --no-install-recommends \
ca-certificates \
build-essential \
golang \
git \
fuse \
libfuse-dev \
gnupg \
&& echo "Download and compile rclone" \
&& go get -v github.com/rclone/rclone@${RCLONE_VERSION} \
&& cp /go/bin/rclone /usr/sbin/ \
&& rm -rf /go || true \
&& apt-get purge -y golang git gnupg \
&& apt-get autoremove -y \
&& rm -rf /tmp/* /var/cache/apk/* /var/lib/apk/lists/*
COPY root/ /