FROM golang:latest AS builder COPY . /src WORKDIR /src RUN go build -trimpath -ldflags="-s -w" -o /helios cmd/*.go FROM ubuntu:latest RUN apt update && \ apt upgrade -y && \ apt install -y --no-install-recommends ca-certificates && \ update-ca-certificates && \ # Cleanup steps rm -rf /var/lib/apt/lists/* COPY --from=builder /helios /bin/helios ENV SOURCE_DIR=/src