Skip to content

Commit 7e3d05d

Browse files
committed
chore: arm images
1 parent f45cc7b commit 7e3d05d

File tree

4 files changed

+24
-9
lines changed

4 files changed

+24
-9
lines changed

apps/gluetun/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{
66
"name": "master",
77
"platforms": [
8-
"linux/amd64"
8+
"linux/amd64",
9+
"linux/arm64"
910
],
1011
"stable": true,
1112
"tests": {

apps/pia/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{
66
"name": "master",
77
"platforms": [
8-
"linux/amd64"
8+
"linux/amd64",
9+
"linux/arm64"
910
],
1011
"stable": true,
1112
"tests": {

apps/rclone-manager/Dockerfile

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,29 @@ RUN apk update && apk upgrade && \
77

88
RUN git clone -b main https://github.com/iPromKnight/rclone-manager /source
99

10-
FROM golang:1.24-alpine AS builder
10+
FROM --platform=$BUILDPLATFORM golang:1.24-alpine AS builder
11+
12+
ARG TARGETOS
13+
ARG TARGETARCH
1114

1215
RUN apk add --no-cache git
1316

1417
WORKDIR /app
1518

16-
COPY --from=cloner /source/src/go.mod go.sum* ./
17-
RUN go mod download
19+
COPY --from=cloner /source/src/go.mod /source/src/go.sum .
20+
21+
RUN --mount=type=cache,target=/go/pkg/mod \
22+
go mod download -x
23+
24+
COPY --from=cloner /source/src/. .
1825

19-
COPY --from=cloner /source/src/ ./
20-
RUN go build -o rclone-manager ./cmd/main.go
26+
RUN --mount=type=cache,target=/go/pkg/mod \
27+
--mount=type=cache,target=/root/.cache/go-build \
28+
CGO_ENABLED=0 GOOS=$TARGETOS GOARCH=$TARGETARCH \
29+
go build -trimpath \
30+
-ldflags="-w -s" \
31+
-o /rclone-manager \
32+
cmd/main.go
2133

2234
FROM ghcr.io/ipromknight/alpine:rolling
2335

@@ -38,7 +50,7 @@ RUN mkdir -p /data
3850

3951
RUN ln -s /usr/bin/fusermount3 /usr/bin/fusermount
4052

41-
COPY --from=builder --chmod=0755 /app/rclone-manager /usr/local/bin/rclone-manager
53+
COPY --from=builder --chmod=0755 /rclone-manager /usr/local/bin/rclone-manager
4254

4355
RUN echo "user_allow_other" >> /etc/fuse.conf
4456

apps/rclone-manager/metadata.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
{
66
"name": "main",
77
"platforms": [
8-
"linux/amd64"
8+
"linux/amd64",
9+
"linux/arm64"
910
],
1011
"stable": true,
1112
"tests": {

0 commit comments

Comments
 (0)