Dockerfile 205 B

1234567
  1. FROM golang:latest
  2. WORKDIR /root
  3. COPY / /root
  4. RUN go env -w GOPROXY=https://goproxy.cn,direct
  5. RUN go build -o register
  6. EXPOSE 12312
  7. ENTRYPOINT ./register -consul.addr=$consulAddr -service.addr=$serviceAddr