mirror of
https://github.com/linka-cloud/d2vm.git
synced 2025-06-23 13:52:26 +00:00
build and convert implementations
centos: WIP Signed-off-by: Adphi <philippe.adrien.nousse@gmail.com>
This commit is contained in:
31
Dockerfile
Normal file
31
Dockerfile
Normal file
@ -0,0 +1,31 @@
|
||||
FROM golang as builder
|
||||
|
||||
WORKDIR /d2vm
|
||||
|
||||
COPY go.mod go.mod
|
||||
COPY go.sum go.sum
|
||||
|
||||
RUN go mod download
|
||||
|
||||
COPY . .
|
||||
|
||||
RUN go build -o d2vm ./cmd/d2vm
|
||||
|
||||
FROM ubuntu
|
||||
|
||||
RUN apt-get update && \
|
||||
DEBIAN_FRONTEND=noninteractive apt-get -y install --no-install-recommends \
|
||||
linux-image-virtual \
|
||||
util-linux \
|
||||
kpartx \
|
||||
e2fsprogs \
|
||||
xfsprogs \
|
||||
mount \
|
||||
tar \
|
||||
extlinux \
|
||||
uuid-runtime \
|
||||
qemu-utils
|
||||
|
||||
COPY --from=docker:dind /usr/local/bin/docker /usr/local/bin/
|
||||
|
||||
COPY --from=builder /d2vm/d2vm /usr/local/bin/
|
Reference in New Issue
Block a user