From 53b2103b55536554f57a1cfeb85d23d160f5f165 Mon Sep 17 00:00:00 2001 From: taoshihan1991 <630892807@qq.com> Date: Tue, 27 Apr 2021 13:46:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95docker?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index b9897bf..86d2caa 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,7 +4,6 @@ COPY . /app WORKDIR /app ENV GOPROXY https://mirrors.aliyun.com/goproxy VOLUME ["/app/config"] -RUN ["go","build","go-fly.go"] -RUN ["go-fly","install"] +RUN go build go-fly.go EXPOSE 8081 CMD ["/app/go-fly","server"] \ No newline at end of file