Something went wrong. Try again.
/x/perimental project monorepo
Something went wrong. Try again.
12345678910111213141516171819202122232425262728FROM golang:1.25 AS buildWORKDIR /app
# Cache module downloadCOPY go.mod go.sum ./RUN go mod download
# Copy source and build the mi binaryCOPY . .RUN --mount=type=cache,target=/root/.cache \ GOBIN=/app/bin \ go install ./cmd/mi
FROM debian:bookworm AS runtimeWORKDIR /app
# Minimal runtime dependenciesRUN apt-get update && apt-get install -y \ ca-certificates \ && rm -rf /var/lib/apt/lists/* \ && cp /etc/ssl/certs/ca-certificates.crt .
COPY --from=build /app/bin/mi /app/bin/miCMD ["/app/bin/mi"]
LABEL org.opencontainers.image.source="https://github.com/Xe/x"