diff --git a/Dockerfile b/Dockerfile index bd80540..bad0bbf 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,7 +6,7 @@ RUN apt-get update -y && apt-get install -y \ build-essential \ cmake \ git - +RUN apk add git make g++ RUN git clone https://github.com/jgarff/rpi_ws281x.git \ && cd rpi_ws281x \ && mkdir build \ @@ -17,7 +17,7 @@ RUN git clone https://github.com/jgarff/rpi_ws281x.git \ # Stage 1 : Build a go image with the rpi_ws281x C library and the go wrapper -FROM golang:latest +FROM golang:alpine COPY --from=lib_builder /usr/local/lib/libws2811.a /usr/local/lib/ COPY --from=lib_builder /usr/local/include/ws2811 /usr/local/include/ws2811