SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
# Multi-stage build for SeaweedFS S3 with IAM
FROM golang:1.26-alpine AS builder
# Install build dependencies
RUN apk add --no-cache git make curl wget
# Set working directory
WORKDIR /app
# Copy source code
COPY . .
# Build SeaweedFS with IAM integration
RUN cd weed && go build -o /usr/local/bin/weed
# Final runtime image
FROM alpine:latest
# Install runtime dependencies
RUN apk add --no-cache ca-certificates wget curl
# Copy weed binary
COPY --from=builder /usr/local/bin/weed /usr/local/bin/weed
# Create directories
RUN mkdir -p /etc/seaweedfs /data
# Health check
HEALTHCHECK --interval=30s --timeout=10s --start-period=5s --retries=3 \
CMD wget --quiet --tries=1 --spider http://localhost:8333/ || exit 1
# Set entrypoint
ENTRYPOINT ["/usr/local/bin/weed"]