from golang:alpine as build RUN apk add --update git COPY * /go/src/udpManifold/ WORKDIR /go/src/udpManifold RUN go get . ############################## from alpine as run-env COPY --from=build /go/bin/udpManifold /usr/bin CMD udpManifold -listenPort $LISTEN_PORT -sendAddresses $SEND_ADDRESSES $EXTRA_ARGS