aboutsummaryrefslogtreecommitdiff
path: root/cmd/seaweedfs-mount/Dockerfile
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/seaweedfs-mount/Dockerfile')
-rw-r--r--cmd/seaweedfs-mount/Dockerfile7
1 files changed, 5 insertions, 2 deletions
diff --git a/cmd/seaweedfs-mount/Dockerfile b/cmd/seaweedfs-mount/Dockerfile
index 264d397..c6651e0 100644
--- a/cmd/seaweedfs-mount/Dockerfile
+++ b/cmd/seaweedfs-mount/Dockerfile
@@ -1,10 +1,13 @@
+ARG SEAWEEDFS_VERSION=4.01
+
FROM golang:1.25-alpine AS builder
RUN apk add git g++
-# Build weed binary
+# Build weed binary (pinned to specific version for reproducibility)
+ARG SEAWEEDFS_VERSION
RUN mkdir -p /go/src/github.com/seaweedfs/
-RUN git clone https://github.com/seaweedfs/seaweedfs /go/src/github.com/seaweedfs/seaweedfs
+RUN git clone --depth 1 --branch ${SEAWEEDFS_VERSION} https://github.com/seaweedfs/seaweedfs /go/src/github.com/seaweedfs/seaweedfs
RUN cd /go/src/github.com/seaweedfs/seaweedfs/weed && go install && go clean -cache -modcache
# Build seaweedfs-mount from current context