Browse Source

Add 'Dockerfile'

天问 2 months ago
parent
commit
283b0311c6
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Dockerfile

+ 7 - 0
Dockerfile

@@ -0,0 +1,7 @@
+FROM registry.cn-hangzhou.aliyuncs.com/kennylee/golang:latest
+
+RUN apt-get install -y git dmsetup
+RUN git clone https://github.com/google/cadvisor.git /go/src/github.com/google/cadvisor
+RUN cd /go/src/github.com/google/cadvisor && make
+
+ENTRYPOINT ["/go/src/github.com/google/cadvisor/cadvisor"]