Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
aleskandro committed Aug 28, 2024
1 parent b0858b3 commit 33b4b7d
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit 33b4b7d

Please sign in to comment.