1 Star 0 Fork 0

Roc / docker-resilio-sync

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
Dockerfile 1.12 KB
一键复制 编辑 原始数据 按行查看 历史
aptalca 提交于 2021-10-03 16:02 . update formatting
FROM ghcr.io/linuxserver/baseimage-ubuntu:focal
# set version label
ARG BUILD_DATE
ARG VERSION
ARG SYNC_VERSION
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="thelamer"
RUN \
echo "**** install packages ****" && \
apt-get update && \
apt-get install -y --no-install-recommends \
gnupg && \
echo "**** install resilio-sync ****" && \
if [ -z ${SYNC_VERSION+x} ]; then \
SYNC_VERSION=$(curl -sX GET http://linux-packages.resilio.com/resilio-sync/deb/dists/resilio-sync/non-free/binary-amd64/Packages |grep -A 7 -m 1 'Package: resilio-sync' | awk -F ': ' '/Version/{print $2;exit}'); \
fi && \
echo "deb http://linux-packages.resilio.com/resilio-sync/deb resilio-sync non-free" | tee /etc/apt/sources.list.d/resilio-sync.list && \
curl -L https://linux-packages.resilio.com/resilio-sync/key.asc | apt-key add && \
apt-get update && \
apt-get install -y --no-install-recommends \
"resilio-sync=${SYNC_VERSION}" && \
echo "**** cleanup ****" && \
rm -rf \
/tmp/*
# add local files
COPY root/ /
# ports and volumes
EXPOSE 8888 55555
VOLUME /config /sync
1
https://gitee.com/dllen/docker-resilio-sync.git
git@gitee.com:dllen/docker-resilio-sync.git
dllen
docker-resilio-sync
docker-resilio-sync
master

搜索帮助