ceph-csi/actions/retest/Dockerfile
Humble Chirammal ad36f13e92 build: the go setup has been configured to 1.18 for retest build
this commit make use of 1.18 version of go for building
actions/retest code.

Signed-off-by: Humble Chirammal <hchiramm@redhat.com>
2022-11-12 07:16:21 +00:00

20 lines
319 B
Docker

ARG WORK_DIR="/home/src"
ARG BASE_IMAGE="golang:1.18"
FROM ${BASE_IMAGE} as builder
ARG WORK_DIR
COPY . /home/src
WORKDIR ${WORK_DIR}
RUN go build -mod=vendor -o retest ./main.go
FROM ${BASE_IMAGE}
ARG WORK_DIR
COPY --from=builder ${WORK_DIR}/retest /usr/local/bin/retest
ENTRYPOINT [ "/usr/local/bin/retest" ]