ci: fix docker build issue for retest

fix docker build `cannot normalize nothing`

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
This commit is contained in:
Madhu Rajanna 2021-11-16 20:25:00 +05:30 committed by mergify[bot]
parent 46c40fe5ad
commit c4ceadd06a

View File

@ -3,6 +3,8 @@ ARG BASE_IMAGE="golang:1.16"
FROM ${BASE_IMAGE} as builder FROM ${BASE_IMAGE} as builder
ARG WORK_DIR
COPY . /home/src COPY . /home/src
WORKDIR ${WORK_DIR} WORKDIR ${WORK_DIR}
@ -10,6 +12,8 @@ RUN go build -mod=vendor -o retest ./main.go
FROM scratch FROM scratch
ARG WORK_DIR
COPY --from=builder ${WORK_DIR}/retest /usr/local/bin/retest COPY --from=builder ${WORK_DIR}/retest /usr/local/bin/retest
ENTRYPOINT [ "/usr/local/bin/retest" ] ENTRYPOINT [ "/usr/local/bin/retest" ]