ceph-csi/actions/retest/Dockerfile
Madhu Rajanna 5718053e9c ci: use golang 1.21 for retest action
use golang 1.21 for resest action
dockerfile.

Signed-off-by: Madhu Rajanna <madhupr007@gmail.com>
2024-04-02 14:10:11 +00:00

20 lines
319 B
Docker

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