mirror of https://github.com/joan2937/pigpio
Create dockerfile to build docker image
Signed-off-by: Jérémie Drouet <jeremie.drouet@gmail.com>
This commit is contained in:
parent
ad89f458c8
commit
d088a4b0f9
|
@ -0,0 +1,3 @@
|
|||
EXAMPLES
|
||||
Dockerfile
|
||||
.github
|
|
@ -0,0 +1,18 @@
|
|||
FROM debian:buster AS builder
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y make gcc \
|
||||
&& rm -rf /var/lib/apt/lists/*
|
||||
|
||||
WORKDIR /workdir
|
||||
COPY . /workdir
|
||||
RUN make install
|
||||
|
||||
FROM debian:buster-slim
|
||||
|
||||
COPY --from=builder /usr/local/lib/libpigpio.so.1 /usr/local/lib/libpigpio.so.1
|
||||
COPY --from=builder /usr/local/bin/pigpiod /usr/local/bin/pigpiod
|
||||
|
||||
RUN ldconfig
|
||||
|
||||
CMD ["/usr/local/bin/pigpiod", "-g"]
|
Loading…
Reference in New Issue