File tree Expand file tree Collapse file tree 3 files changed +20
-6
lines changed
Expand file tree Collapse file tree 3 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -5,9 +5,9 @@ ARG VERSION
55RUN apk update && apk upgrade && \
66 apk add --no-cache git
77
8- RUN git clone -b $VERSION https://github.com/iPromKnight/rclone-manager /source
8+ RUN git clone -b main https://github.com/iPromKnight/rclone-manager /source
99
10- FROM --platform=linux/amd64 golang:1.24-alpine AS builder
10+ FROM golang:1.24-alpine AS builder
1111
1212RUN apk add --no-cache git
1313
@@ -21,11 +21,18 @@ RUN go build -o rclone-manager ./cmd/main.go
2121
2222FROM ghcr.io/ipromknight/alpine:rolling
2323
24+ ARG VERSION
25+
2426RUN apk add --no-cache \
2527 fuse3 \
2628 curl \
27- rclone \
28- su-exec
29+ su-exec \
30+ unzip
31+
32+ RUN curl -Lso /tmp/rclone.zip "https://github.com/rclone/rclone/releases/download/v${VERSION}/rclone-v${VERSION}-linux-amd64.zip" && \
33+ unzip /tmp/rclone.zip "rclone-v${VERSION}-linux-amd64/rclone" -d /tmp && \
34+ install -m 0755 /tmp/rclone-v${VERSION}-linux-amd64/rclone /usr/local/bin/rclone && \
35+ rm -rf /tmp/rclone*
2936
3037RUN mkdir -p /data
3138
Original file line number Diff line number Diff line change 1+ ---
2+ file :
3+ /usr/local/bin/rclone-manager :
4+ exists : true
5+ /usr/local/bin/rclone :
6+ exists : true
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
2- version=" main"
3- printf " %s" " ${version} "
2+ version=$( curl -Lsf https://api.github.com/repos/rclone/rclone/releases/latest | jq --raw-output ' . | .tag_name' )
3+ version=" ${version#* v} "
4+ printf " %s" " ${version} "
You can’t perform that action at this time.
0 commit comments