From c4ceadd06a57d9341b71a818da2b986457c80e0a Mon Sep 17 00:00:00 2001 From: Madhu Rajanna Date: Tue, 16 Nov 2021 20:25:00 +0530 Subject: [PATCH] ci: fix docker build issue for retest fix docker build `cannot normalize nothing` Signed-off-by: Madhu Rajanna --- actions/retest/Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/actions/retest/Dockerfile b/actions/retest/Dockerfile index fc3fae192..8d166cbd7 100644 --- a/actions/retest/Dockerfile +++ b/actions/retest/Dockerfile @@ -3,6 +3,8 @@ ARG BASE_IMAGE="golang:1.16" FROM ${BASE_IMAGE} as builder +ARG WORK_DIR + COPY . /home/src WORKDIR ${WORK_DIR} @@ -10,6 +12,8 @@ RUN go build -mod=vendor -o retest ./main.go FROM scratch +ARG WORK_DIR + COPY --from=builder ${WORK_DIR}/retest /usr/local/bin/retest ENTRYPOINT [ "/usr/local/bin/retest" ]