FROM docker.io/golang:alpine AS builder WORKDIR /go/src/sidoxy COPY . . RUN go get && \ mkdir build && \ go build -o build/sidoxy FROM docker.io/alpine:latest COPY --from=builder /go/src/sidoxy/build/sidoxy ./ CMD ["./sidoxy"]