Files
go-rpi-rgb-led-matrix/Dockerfile
nathan 914078cd22
Some checks failed
go-rpi-ws2811-lib/pipeline/head Build queued...
rgbarmlib64/pipeline/head Something is wrong with the build of this commit
Update 'Dockerfile'
2023-01-15 03:00:00 +00:00

17 lines
485 B
Docker

#FROM golang:1.18.3-buster as builder
FROM golang:alpine
WORKDIR /usr/src/app
COPY . .
#RUN apt-get install -y git
RUN apk add git make g++
RUN go mod tidy -e
RUN go mod vendor
RUN mkdir -p /usr/local/include
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
RUN cp /usr/src/app/vendor/rpi-rgb-led-matrix/lib/* /usr/local/lib