From 9fae5bae75a4a213689c3e447f434ae159d39617 Mon Sep 17 00:00:00 2001 From: Wolfgang Hottgenroth Date: Wed, 28 Oct 2020 23:33:07 +0100 Subject: [PATCH] add some more stuff --- Dockerfile | 25 +++++++++++++++++++++++-- 1 file changed, 23 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index f102832..c767b9d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,31 @@ LABEL AlternativeImageName="wollud1969/build-env-c" RUN \ - apt-get update && \ - apt-get install -y gcc g++ libcunit1 libcunit1-dev && \ + apt update && \ + apt install -y gcc g++ libcunit1 libcunit1-dev && \ + apt install -y libcurl4-gnutls-dev && \ + apt install -y libmariadbclient-dev && \ + apt install -y libconfig-dev && \ + apt install -y libcunit1-dev && \ + apt install -y libssl-dev && \ + apt install -y valgrind && \ + mkdir /work && \ + useradd -d /work -u 1000 user && \ rm -rf /var/lib/apt/lists/* +RUN \ + cd / tmp && \ + git clone https://github.com/eclipse/paho.mqtt.c.git && \ + cd paho.mqtt.c && \ + make && \ + make install + +VOLUME /work +WORKDIR /work + +USER 1000:1000 + +