diff --git a/Dockerfile b/Dockerfile index 9f47861..7e3ddef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,7 +1,12 @@ +# Note: this is cross-building for armv7l, which is the architecture of the Kobo Elipsa 2E devices +# This Dockerfile is meant to be used only to support the build of the KoboRoot.tgz +# The final image is based on scratch, with the binary, the ca-certificates and any other content to ship to the device. +# The image is squashed and stored as KoboRoot.tgz for the release. FROM golang:1.23 AS builder WORKDIR /go/src/app COPY . . + RUN CGO_ENABLED=0 GOARCH=arm go build -a -o manager main.go FROM scratch