parent
e2d47b0eec
commit
3931d81e78
|
@ -1,9 +1,8 @@
|
||||||
FROM golang:alpine as builder
|
FROM golang:alpine as builder
|
||||||
RUN apk add git
|
RUN apk add git
|
||||||
COPY main.go /go/src/github.com/discourse/discourse-auth-proxy/
|
COPY main.go /go/src/github.com/discourse/discourse-auth-proxy/
|
||||||
RUN cd /go/src/github.com/discourse/discourse-auth-proxy \
|
WORKDIR /go/src/github.com/discourse/discourse-auth-proxy
|
||||||
&& go get \
|
RUN go get && go build
|
||||||
&& go build
|
|
||||||
|
|
||||||
FROM alpine:latest
|
FROM alpine:latest
|
||||||
COPY --from=builder /go/bin/discourse-auth-proxy /bin/
|
COPY --from=builder /go/bin/discourse-auth-proxy /bin/
|
||||||
|
|
Loading…
Reference in New Issue