Browse Source

project: test 25

Yi 1 year ago
parent
commit
021048a156
1 changed files with 5 additions and 7 deletions
  1. 5 7
      Dockerfile

+ 5 - 7
Dockerfile

@@ -5,20 +5,18 @@ LABEL name="kpt-tmr-group" \
 description="pt service" \
 owner="yiping.xu"
 
-COPY ./* .
-
-RUN ls -l && pwd
+WORKDIR /bin
 
 RUN go env -w GO111MODULE=on \
     && go env -w GOPROXY=https://goproxy.cn,direct \
     && go env -w CGO_ENABLED=0 \
-    && go env \
-    && go mod tidy -compat=1.17 \
     && go build -o ./bin/kptTmrGroup \
     && ls -l ./bin
 
-EXPOSE 8080
+ADD ./bin/kptTmrGroup /bin/kptTmrGroup
+COPY config/*.yaml /bin/config/
 
+EXPOSE 8080
 VOLUME /var/Logger
 
-CMD ["/go/src/kpt-tmr-group/bin/kptTmrGroup"]
+CMD ["/go/src/kpt-tmr-group/bin/kptTmrGroup","http"]