You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

12 lines
309 B

FROM golang:1.9.0 AS builder
WORKDIR /go/src/github.com/ben-st/go-mux
COPY . .
RUN go get -d
RUN CGO_ENABLED=0 GOOS=linux go build -o mux
# Final image.
FROM scratch
LABEL maintainer="Benjamin Stein <info@diffus.org>"
COPY --from=builder /go/src/github.com/ben-st/go-mux/mux .
EXPOSE 8080
ENTRYPOINT ["/mux"]