diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..4648366 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM golang:1.18.3-buster + +WORKDIR /usr/src/app +COPY . . +RUN apt-get install -y git +WORKDIR /usr/src/app/vendor/rpi-rgb-led-matrix/ +RUN git submodule update --init +RUN make +WORKDIR /usr/src/app +RUN go install -v ./... diff --git a/builder b/builder new file mode 100644 index 0000000..605a61d --- /dev/null +++ b/builder @@ -0,0 +1 @@ + docker buildx build --platform linux/arm64 . diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..09c0fb2 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix.git + +go 1.17