mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-19 01:06:27 +00:00
initial cross compile support for arm, just for 9pudc
Signed-off-by: Justin Cormack <justin.cormack@unikernel.com>
This commit is contained in:
parent
9a3fa822db
commit
3fc3d0fb71
@ -6,5 +6,10 @@ RUN mkdir -p /go/src/9pudc
|
||||
WORKDIR /go/src/9pudc
|
||||
|
||||
COPY . /go/src/9pudc/
|
||||
RUN go get
|
||||
RUN go install
|
||||
|
||||
ARG GOARCH
|
||||
ARG GOOS
|
||||
|
||||
RUN go get && go install
|
||||
|
||||
RUN [ -f /go/bin/*/9pudc ] && mv /go/bin/*/9pudc /go/bin/ || true
|
||||
|
@ -1,7 +1,7 @@
|
||||
all: 9pudc
|
||||
|
||||
9pudc: Dockerfile main.go
|
||||
docker build -t 9pudc:test .
|
||||
docker build --build-arg GOOS=$(GOOS) --build-arg GOARCH=$(GOARCH) -t 9pudc:test .
|
||||
docker run 9pudc:test cat /go/bin/9pudc > 9pudc
|
||||
chmod 555 9pudc
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user