Skip to content

Instantly share code, notes, and snippets.

View lixit's full-sized avatar

xitong lixit

View GitHub Profile
@maixuanhan
maixuanhan / install-ubuntu-server-via-console.md
Last active April 6, 2023 06:41
Install Ubuntu server 18.04 via USB disk and serial console
@PurpleBooth
PurpleBooth / Dockerfile
Last active March 21, 2024 09:33
Create a static binary in go and put it in a from scratch docker container
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"]