Files
go-rpi-rgb-led-matrix/Dockerfile
nathan 0e90d47310
All checks were successful
rgbarmlib64/pipeline/head This commit looks good
Update 'Dockerfile'
2023-01-08 22:28:23 +00:00

15 lines
342 B
Docker

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 ./...
RUN cp /usr/src/app/vendor/rpi-rgb-led-matrix/include/* /usr/local/include