diff --git a/Storage/seaweedfs/3.96/24.03-lts-sp1/Dockerfile b/Storage/seaweedfs/3.96/24.03-lts-sp1/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..1d8017f118db5e36d960d79d8e6b056088721f34 --- /dev/null +++ b/Storage/seaweedfs/3.96/24.03-lts-sp1/Dockerfile @@ -0,0 +1,26 @@ +ARG BASE=openeuler/openeuler:24.03-lts-sp1 +FROM ${BASE} AS builder + +ARG TARGETARCH +ARG VERSION=3.96 +ARG GO_VERSION=1.23.3 + +WORKDIR /app +RUN curl -fSL -o go.tar.gz https://golang.google.cn/dl/go${GO_VERSION}.linux-${TARGETARCH}.tar.gz && \ + tar -xvf go.tar.gz -C /usr/local + +ENV PATH="/usr/local/go/bin:${PATH}" +ENV GO111MODULE=on +ENV GOPROXY=https://repo.huaweicloud.com/repository/goproxy/ +ENV GONOSUMDB=* +RUN curl -fSL -o seaweedfs.tar.gz https://github.com/seaweedfs/seaweedfs/archive/refs/tags/${VERSION}.tar.gz && \ + mkdir -p /app/seaweedfs && \ + tar -zxf seaweedfs.tar.gz -C /app/seaweedfs --strip-components=1 + +WORKDIR /app/seaweedfs/weed +RUN go build + +FROM ${BASE} + +COPY --from=builder /app/seaweedfs/weed/weed /usr/bin/weed +ENTRYPOINT ["/usr/bin/weed"] \ No newline at end of file diff --git a/Storage/seaweedfs/meta.yml b/Storage/seaweedfs/meta.yml index f178131b987879f57535cefd75cca9ba423bf6f3..9dd5753cd8b55deb43ae1db487f960bd6b843770 100644 --- a/Storage/seaweedfs/meta.yml +++ b/Storage/seaweedfs/meta.yml @@ -1,2 +1,4 @@ 3.85-oe2403sp1: - path: 3.85/24.03-lts-sp1/Dockerfile \ No newline at end of file + path: 3.85/24.03-lts-sp1/Dockerfile +3.96-oe2403sp1: + path: 3.96/24.03-lts-sp1/Dockerfile \ No newline at end of file