Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Last active August 5, 2022 06:01
Show Gist options
  • Save percybolmer/87cc5ed09f4df684305713e456b67de9 to your computer and use it in GitHub Desktop.
Save percybolmer/87cc5ed09f4df684305713e456b67de9 to your computer and use it in GitHub Desktop.
FROM golang:alpine as builder
WORKDIR /app
COPY . .
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o hellogopher -ldflags="-w -s"
ENTRYPOINT [ "./hellogopher" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment