8b2a3f90816036a8ecb40e688d8b0074660debd4.svn-base 253 B

1234567
  1. FROM golang:latest
  2. WORKDIR /root/micro-go-course/section11/user
  3. COPY / /root/micro-go-course/section11/user
  4. RUN go env -w GOPROXY=https://goproxy.cn,direct
  5. RUN go build -o user
  6. EXPOSE 10086
  7. ENTRYPOINT ./user -mysql.addr $mysqlAddr -redis.addr $redisAddr