Explorar el Código

project: ci-cd

Yi hace 1 año
padre
commit
256a093dee
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. 4 0
      Dockerfile

+ 4 - 0
Dockerfile

@@ -6,6 +6,10 @@ owner="yiping.xu"
 
 WORKDIR /bin
 
+RUN rm -rf bin && \
+    mkdir -p bin && \
+    GOARCH=amd64 GOOS=linux CGO_ENABLED=0 go build -o bin/kptTmr -ldflags "-X kpt.kptyun.cn:3000/kpt-tmr/pod.app" main.go
+
 ADD ./bin/kptTmr /bin/kptTmr
 COPY config/ /bin/config/