FROM golang:1.25-alpine AS builder WORKDIR /app COPY go.mod go.sum ./ RUN go mod download COPY . . RUN CGO_ENABLED=0 go build -o /bin/file-system ./cmd/server FROM alpine:latest RUN apk --no-cache add ca-certificates COPY --from=builder /bin/file-system /bin/file-system COPY configs/config.yaml /app/configs/config.yaml WORKDIR /app EXPOSE 8080 9000 CMD ["/bin/file-system", "-conf", "configs/config.yaml"]