alskdjaslkdjas
parent
a9bdf22e57
commit
bf87ebdb3e
@ -1,10 +1,15 @@
|
||||
FROM golang:1.18.3-buster
|
||||
FROM golang:1.18.3-buster as builder
|
||||
|
||||
WORKDIR /usr/src/app
|
||||
COPY . .
|
||||
RUN apt-get install -y git
|
||||
RUN go mod tidy -e
|
||||
RUN go mod vendor
|
||||
WORKDIR /usr/src/app/vendor/rpi-rgb-led-matrix/
|
||||
RUN git submodule update --init
|
||||
RUN make
|
||||
WORKDIR /usr/src/app
|
||||
RUN go install -v ./...
|
||||
|
||||
FROM golang:1.18.3-buster
|
||||
COPY --from=builder /usr/src/app/vendor/rpi-rgb-led-matrix/lib/. /lib
|
||||
|
@ -1,3 +1,3 @@
|
||||
module gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix.git
|
||||
module gitea.wagshome.duckdns.org/publicWagsHome/go-rpi-rgb-led-matrix
|
||||
|
||||
go 1.17
|
||||
|
Loading…
Reference in New Issue