mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-02-24 05:20:02 +08:00
Builder
This commit is contained in:
parent
745945b497
commit
d722e721aa
15
Dockerfile
15
Dockerfile
@ -1,10 +1,11 @@
|
|||||||
FROM golang as builder
|
FROM ghcr.io/qemu-tools/qemu-host as builder
|
||||||
|
|
||||||
WORKDIR /
|
# FROM golang as builder
|
||||||
RUN git clone https://github.com/qemu-tools/qemu-host.git
|
# WORKDIR /
|
||||||
WORKDIR /qemu-host/src
|
# RUN git clone https://github.com/qemu-tools/qemu-host.git
|
||||||
RUN go mod download
|
# WORKDIR /qemu-host/src
|
||||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /qemu-host/src/main .
|
# RUN go mod download
|
||||||
|
# RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /qemu-host.bin .
|
||||||
|
|
||||||
FROM debian:bookworm-slim
|
FROM debian:bookworm-slim
|
||||||
|
|
||||||
@ -34,7 +35,7 @@ RUN apt-get update && apt-get -y upgrade && \
|
|||||||
COPY run/*.sh /run/
|
COPY run/*.sh /run/
|
||||||
COPY agent/*.sh /agent/
|
COPY agent/*.sh /agent/
|
||||||
|
|
||||||
COPY --from=builder /qemu-host/src/main /run/host.bin
|
COPY --from=builder /qemu-host.bin /run/host.bin
|
||||||
|
|
||||||
RUN ["chmod", "+x", "/run/run.sh"]
|
RUN ["chmod", "+x", "/run/run.sh"]
|
||||||
RUN ["chmod", "+x", "/run/check.sh"]
|
RUN ["chmod", "+x", "/run/check.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user