Payne 3 лет назад
Родитель
Сommit
98615bef22
1 измененных файлов с 3 добавлено и 4 удалено
  1. 3 4
      Deployments/Dockerfile

+ 3 - 4
Deployments/Dockerfile

@@ -10,10 +10,9 @@ ENV GOPROXY="https://goproxy.cn,direct" \
 WORKDIR /go/src/github.com/gowebspider/jsrpc/
 # Load file
 COPY . .
-## add rely
-go mod tidy/
-# Build and place the results in /tmp/goproxies
-RUN go build -o /tmp/jsrpc .
+# add rely
+# Build and place the results in /tmp/jsrpc
+RUN  go mod tidy && go build -o /tmp/jsrpc .
 
 FROM alpine:latest
 WORKDIR /root/