浏览代码

fix Dockerfile

Payne 3 年之前
父节点
当前提交
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/
 WORKDIR /go/src/github.com/gowebspider/jsrpc/
 # Load file
 # Load file
 COPY . .
 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
 FROM alpine:latest
 WORKDIR /root/
 WORKDIR /root/