Add ncurses to docker build and image.

pull/114/head
Fredrik Öhrström 2020-05-11 12:14:28 +02:00
rodzic 3b96b8de9d
commit aab9b11e83
2 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -13,6 +13,9 @@ The program runs on GNU/Linux, MacOSX, FreeBSD, and Raspberry Pi.
| ------------ |:-------------:| | ------------ |:-------------:|
|GNU/Linux & MacOSX| [![Build Status](https://travis-ci.org/weetmuts/wmbusmeters.svg?branch=master)](https://travis-ci.org/weetmuts/wmbusmeters) | |GNU/Linux & MacOSX| [![Build Status](https://travis-ci.org/weetmuts/wmbusmeters.svg?branch=master)](https://travis-ci.org/weetmuts/wmbusmeters) |
|arm versions|[![CircleCI>](https://circleci.com/gh/weetmuts/wmbusmeters.svg?style=svg)](https://circleci.com/gh/weetmuts/workflows/wmbusmeters)|
| Static Scan | Status | | Static Scan | Status |
| ------------- |:-------------:| | ------------- |:-------------:|
|Linux G++| [![Build Status](https://scan.coverity.com/projects/14774/badge.svg)](https://scan.coverity.com/projects/weetmuts-wmbusmeters) | |Linux G++| [![Build Status](https://scan.coverity.com/projects/14774/badge.svg)](https://scan.coverity.com/projects/weetmuts-wmbusmeters) |

Wyświetl plik

@ -1,5 +1,5 @@
FROM multiarch/alpine:amd64-latest-stable AS build FROM multiarch/alpine:amd64-latest-stable AS build
RUN apk add --no-cache alpine-sdk gcc linux-headers RUN apk add --no-cache alpine-sdk gcc linux-headers ncurses-dev
RUN git clone https://github.com/weetmuts/wmbusmeters.git && \ RUN git clone https://github.com/weetmuts/wmbusmeters.git && \
git clone https://github.com/xaelsouth/rtl-wmbus.git git clone https://github.com/xaelsouth/rtl-wmbus.git
WORKDIR /wmbusmeters WORKDIR /wmbusmeters
@ -9,7 +9,7 @@ RUN make release && chmod 755 build/rtl_wmbus
FROM multiarch/alpine:amd64-latest-stable as scratch FROM multiarch/alpine:amd64-latest-stable as scratch
ENV QEMU_EXECVE=1 ENV QEMU_EXECVE=1
RUN apk add --no-cache mosquitto-clients libstdc++ curl libusb rtl-sdr RUN apk add --no-cache mosquitto-clients libstdc++ curl libusb rtl-sdr ncurses
WORKDIR /wmbusmeters WORKDIR /wmbusmeters
COPY --from=build /wmbusmeters/build/wmbusmeters /wmbusmeters/wmbusmeters COPY --from=build /wmbusmeters/build/wmbusmeters /wmbusmeters/wmbusmeters
COPY --from=build /rtl-wmbus/build/rtl_wmbus /usr/bin/rtl_wmbus COPY --from=build /rtl-wmbus/build/rtl_wmbus /usr/bin/rtl_wmbus