FROM ubuntu:18.04 RUN apt-get update && apt-get -y install git maven default-jdk autoconf automake libtool make libgnutls28-dev WORKDIR /root/src ADD qt_example_changes.patch ./ RUN git clone https://github.com/eclipse-californium/californium.git WORKDIR /root/src/californium RUN git checkout 3.8.0 RUN git apply /root/src/qt_example_changes.patch RUN mvn clean install -T 2.0C -q -DskipTests CMD java -jar /root/src/californium/demo-apps/run/cf-plugtest-server-3.8.0.jar EXPOSE 5683/udp 5684/udp