This is an automated email from the ASF dual-hosted git repository.

kichan pushed a commit to branch master
in repository 
https://gitbox.apache.org/repos/asf/trafficserver-ingress-controller.git


The following commit(s) were added to refs/heads/master by this push:
     new 785a252  fix build issue (#143)
785a252 is described below

commit 785a252ac6e18c803947b4a8095cecdf37a9bab6
Author: Kit Chan <[email protected]>
AuthorDate: Tue Oct 25 20:38:52 2022 -0700

    fix build issue (#143)
---
 Dockerfile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Dockerfile b/Dockerfile
index ab2d07d..49d222f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -73,7 +73,7 @@ RUN apk add --no-cache --virtual .ingress-build-deps \
 COPY GO_VERSION /
 RUN go_version=$(cat /GO_VERSION) \
     && wget https://dl.google.com/go/go${go_version}.src.tar.gz \
-    && tar -C /opt/ats -xzf go${go_version}.src.tar.gz && cd /opt/ats/go/src/ 
&& ./make.bash
+    && rm -rf /opt/ats/go && tar -C /opt/ats -xzf go${go_version}.src.tar.gz 
&& cd /opt/ats/go/src/ && ./make.bash
 ENV PATH=${PATH}:/opt/ats/go/bin
 ENV GOPATH="/opt/ats/go/bin"
 
@@ -94,7 +94,7 @@ COPY ["./go.sum", 
"$GOPATH/src/github.com/apache/trafficserver-ingress-controlle
 # Building Project Main
 WORKDIR /opt/ats/go/bin/src/github.com/apache/trafficserver-ingress-controller
 ENV GO111MODULE=on
-RUN go build -o ingress_ats main/main.go 
+RUN /opt/ats/go/bin/go build -o ingress_ats main/main.go 
 
 # redis conf 
 COPY ["./config/redis.conf", "/opt/ats/etc/redis.conf"]

Reply via email to