Skip to content

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.

580 B
Raw Blame
FROM golang:1.26-alpine AS builder

WORKDIR /app

COPY go.mod go.sum ./
RUN go mod download

WORKDIR /app
COPY . .

WORKDIR /app/telemetry/server
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-extldflags "-static"' -o telemetry-server .

FROM alpine:latest
RUN apk upgrade --no-cache \
    && apk --no-cache add ca-certificates libcrypto3 libssl3 \
    && addgroup -S appgroup \
    && adduser -S appuser -G appgroup

WORKDIR /home/appuser/
COPY --from=builder /app/telemetry/server/telemetry-server .

EXPOSE 8080

USER appuser

CMD ["./telemetry-server"]