ceph-csi/actions/retest/Dockerfile
Niraj Yadav e19c28927f build: Update go version to 1.22.5 for submodules
This patch updates the submodules api and retest to
use the go version 1.22.5

Signed-off-by: Niraj Yadav <niryadav@redhat.com>
2024-08-22 11:22:39 +00:00

20 lines
319 B
Docker

ARG WORK_DIR="/home/src"
ARG BASE_IMAGE="golang:1.22"
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" ]