12 lines
293 B
Docker
12 lines
293 B
Docker
FROM golang:alpine as builder
|
|
RUN apk add git
|
|
WORKDIR /go/src/github.com/discourse/discourse-auth-proxy
|
|
COPY internal ./internal/
|
|
COPY main.go .
|
|
RUN go get && go build
|
|
|
|
FROM alpine:latest
|
|
COPY --from=builder /go/bin/discourse-auth-proxy /bin/
|
|
COPY start.sh /bin/start.sh
|
|
CMD ["/bin/start.sh"]
|