Dockerfile 934 B

12345678910111213141516
  1. FROM golang:1.10.2
  2. RUN mv /etc/apt/sources.list /etc/apt/sources.list.bak \
  3. && echo deb http://mirrors.aliyun.com/debian stretch main contrib non-free > /etc/apt/sources.list \
  4. && echo deb-src http://mirrors.aliyun.com/debian stretch main contrib non-free >> /etc/apt/sources.list \
  5. && echo deb http://mirrors.aliyun.com/debian stretch-updates main contrib non-free >> /etc/apt/sources.list \
  6. && echo deb-src http://mirrors.aliyun.com/debian stretch-updates main contrib non-free >> /etc/apt/sources.list \
  7. && echo deb http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free >> /etc/apt/sources.list \
  8. && echo deb-src http://mirrors.aliyun.com/debian-security stretch/updates main contrib non-free >> /etc/apt/sources.list \
  9. && apt-get update
  10. RUN apt-get update && apt-get install openjdk-8-jdk -y
  11. ADD ./ /go/src/go-common/
  12. RUN cd /go/src/go-common/app/tool/kratos && go install