mirror of
https://github.com/AuxXxilium/arv-v-dsm.git
synced 2025-02-24 04:44:59 +07:00
Build serial module
This commit is contained in:
parent
cda82832d1
commit
c338bbc96f
12
Dockerfile
12
Dockerfile
@ -1,3 +1,10 @@
|
||||
FROM golang:1.16 AS builder
|
||||
|
||||
COPY vdsm-serial/ /src/vdsm-serial/
|
||||
WORKDIR /src/vdsm-serial
|
||||
RUN go get -d -v golang.org/x/net/html
|
||||
RUN CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o /src/vdsm-serial/main .
|
||||
|
||||
FROM debian:bullseye-20230109-slim
|
||||
|
||||
RUN apt-get update && apt-get -y upgrade && \
|
||||
@ -13,13 +20,15 @@ COPY generate-dhcpd-conf /run/
|
||||
COPY qemu-ifdown /run/
|
||||
COPY qemu-ifup /run/
|
||||
COPY run.sh /run/
|
||||
COPY --from=builder /src/vdsm-serial/main /run/
|
||||
|
||||
RUN ["chmod", "+x", "/run/generate-dhcpd-conf"]
|
||||
RUN ["chmod", "+x", "/run/qemu-ifdown"]
|
||||
RUN ["chmod", "+x", "/run/qemu-ifup"]
|
||||
RUN ["chmod", "+x", "/run/run.sh"]
|
||||
RUN ["chmod", "+x", "/run/main"]
|
||||
|
||||
VOLUME /image
|
||||
VOLUME /images
|
||||
|
||||
EXPOSE 5000
|
||||
EXPOSE 5001
|
||||
@ -28,3 +37,4 @@ ENTRYPOINT ["/run/run.sh"]
|
||||
|
||||
# Mostly users will probably want to configure memory usage.
|
||||
CMD ["-m", "512M"]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user