Update 'Dockerfile'
Some checks failed
go-rpi-ws2811-lib/pipeline/head Something is wrong with the build of this commit
Some checks failed
go-rpi-ws2811-lib/pipeline/head Something is wrong with the build of this commit
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user