Skip to content

Instantly share code, notes, and snippets.

@brianpgerson
Created January 14, 2021 23:59
Show Gist options
  • Save brianpgerson/b0f2106bbe7e7c6e04831651d712fe52 to your computer and use it in GitHub Desktop.
Save brianpgerson/b0f2106bbe7e7c6e04831651d712fe52 to your computer and use it in GitHub Desktop.
FROM golang:latest as builder
COPY . /extauth_http
WORKDIR /extauth_http
ENV GO111MODULE=on
RUN CGO_ENABLED=0 GOOOS=linux go build -o httpauthexec ./extauth_http/main.go
FROM alpine:latest
WORKDIR /root/
COPY --from=builder /extauth_http .
CMD ["./httpauthexec"]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment