Skip to content

Commit

Permalink
Merge remote-tracking branch 'wiserain/mod'
Browse files Browse the repository at this point in the history
  • Loading branch information
Sakura-Byte committed Feb 15, 2025
2 parents e450ca2 + eb4de70 commit da5ee11
Show file tree
Hide file tree
Showing 101 changed files with 2,086 additions and 734 deletions.
44 changes: 36 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,47 @@
FROM golang:alpine AS builder

COPY . /go/src/github.com/rclone/rclone/
ARG CGO_ENABLED=0

WORKDIR /go/src/github.com/rclone/rclone/

RUN apk add --no-cache make bash gawk git
RUN \
CGO_ENABLED=0 \
make
RUN ./rclone version
RUN echo "**** Set Go Environment Variables ****" && \
go env -w GOCACHE=/root/.cache/go-build

RUN echo "**** Install Dependencies ****" && \
apk add --no-cache \
make \
bash \
gawk \
git

COPY go.mod .
COPY go.sum .

RUN echo "**** Download Go Dependencies ****" && \
go mod download -x

RUN echo "**** Verify Go Dependencies ****" && \
go mod verify

COPY . .

RUN --mount=type=cache,target=/root/.cache/go-build,sharing=locked \
echo "**** Build Binary ****" && \
make

RUN echo "**** Print Version Binary ****" && \
./rclone version

# Begin final image
FROM alpine:latest

RUN apk --no-cache add ca-certificates fuse3 tzdata && \
echo "user_allow_other" >> /etc/fuse.conf
RUN echo "**** Install Dependencies ****" && \
apk add --no-cache \
ca-certificates \
fuse3 \
tzdata && \
echo "Enable user_allow_other in fuse" && \
echo "user_allow_other" >> /etc/fuse.conf

COPY --from=builder /go/src/github.com/rclone/rclone/rclone /usr/local/bin/

Expand Down
644 changes: 401 additions & 243 deletions MANUAL.html

Large diffs are not rendered by default.

Loading

0 comments on commit da5ee11

Please sign in to comment.