added docker version of olm

Former-commit-id: 0d8cacdb90
This commit is contained in:
Lokowitz
2025-08-31 07:22:32 +00:00
parent 52573c8664
commit ad4ab3d04f
4 changed files with 44 additions and 2 deletions

View File

@@ -16,9 +16,9 @@ COPY . .
RUN CGO_ENABLED=0 GOOS=linux go build -o /olm
# Start a new stage from scratch
FROM ubuntu:24.04 AS runner
FROM alpine:3.22 AS runner
RUN apt-get update && apt-get install ca-certificates -y && rm -rf /var/lib/apt/lists/*
RUN apk --no-cache add ca-certificates
# Copy the pre-built binary file from the previous stage and the entrypoint script
COPY --from=builder /olm /usr/local/bin/