Dockerfile 311 B

12345678910111213
  1. from golang:alpine as build
  2. RUN apk add --update git
  3. COPY * /go/src/udpManifold/
  4. WORKDIR /go/src/udpManifold
  5. RUN go get .
  6. ##############################
  7. from alpine as run-env
  8. COPY --from=build /go/bin/udpManifold /usr/bin
  9. CMD udpManifold -listenPort $LISTEN_PORT -sendAddresses $SEND_ADDRESSES $EXTRA_ARGS