mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-17 20:00:23 +00:00
16 lines
285 B
Docker
16 lines
285 B
Docker
|
ARG WORK_DIR="/home/src"
|
||
|
ARG BASE_IMAGE="golang:1.16"
|
||
|
|
||
|
FROM ${BASE_IMAGE} as builder
|
||
|
|
||
|
COPY . /home/src
|
||
|
WORKDIR ${WORK_DIR}
|
||
|
|
||
|
RUN go build -mod=vendor -o retest ./main.go
|
||
|
|
||
|
FROM scratch
|
||
|
|
||
|
COPY --from=builder ${WORK_DIR}/retest /usr/local/bin/retest
|
||
|
|
||
|
ENTRYPOINT [ "/usr/local/bin/retest" ]
|