Tested on NCA-1510B Lanner Electronics Inc.
- Ubuntu machine with network connection for making bootable USB.
- An 8GiB USB.
- Download latest ubuntu server distro image. Recommend ubuntu-server 18.04
Tested on NCA-1510B Lanner Electronics Inc.
FROM golang:1.9 | |
WORKDIR /go/src/github.com/purplebooth/example | |
COPY . . | |
RUN go build -ldflags "-linkmode external -extldflags -static" -a main.go | |
FROM scratch | |
COPY --from=0 /go/src/github.com/purplebooth/example/main /main | |
CMD ["/main"] |