Skip to content

Instantly share code, notes, and snippets.

@brianpgerson
Created December 17, 2020 02:07
Show Gist options
  • Save brianpgerson/31b3cef5de5c3b8499229cd66537799c to your computer and use it in GitHub Desktop.
Save brianpgerson/31b3cef5de5c3b8499229cd66537799c to your computer and use it in GitHub Desktop.
FROM golang:latest as builder
COPY . /extauth
WORKDIR /extauth
ENV GO111MODULE=on
RUN CGO_ENABLED=0 GOOOS=linux go build -o extauthexec ./extauth/main.go
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /extauth .
CMD ["./extauthexec"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment