19 lines
No EOL
300 B
Docker
19 lines
No EOL
300 B
Docker
FROM debian:bookworm-slim as base
|
|
|
|
FROM base as build
|
|
|
|
RUN apt update && apt install build-essential -y
|
|
|
|
WORKDIR /app
|
|
|
|
COPY . .
|
|
|
|
RUN make install
|
|
|
|
FROM base as app
|
|
|
|
COPY --from=build /usr/sbin/mbpfan /usr/sbin/mbpfan
|
|
|
|
COPY --from=build /etc/mbpfan.conf /etc/mbpfan.conf
|
|
|
|
CMD ["/usr/bin/mbpfan", "-f"] |