You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
449 B
Docker

#FROM golang:1.18.3-buster as builder
FROM golang:alpine
2 years ago
WORKDIR /usr/src/app
COPY . .
#RUN apt-get install -y git
RUN apk add git make
2 years ago
RUN go mod tidy -e
RUN go mod vendor
2 years ago
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