From a39eeab03153b3c2d5cf1206d60683631cd1cd30 Mon Sep 17 00:00:00 2001 From: Steffen Vogel Date: Thu, 10 Aug 2017 20:21:13 +0200 Subject: [PATCH] docker: add another layer to leverage build cache --- Dockerfile | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 11584e183..5c7c39de2 100644 --- a/Dockerfile +++ b/Dockerfile @@ -30,8 +30,26 @@ MAINTAINER Steffen Vogel # Some of the dependencies are only available in our own repo ADD https://villas.fein-aachen.org/packages/villas.repo /etc/yum.repos.d/ -RUN dnf -y update && \ - dnf -y install \ +# Usually the following dependecies would be resolved by dnf +# when installing villas-node. +# We add them here to utilise Dockers caching and layer feature +# in order reduce bandwidth and space usage. +RUN dnf -y install \ + openssl \ + libconfig \ + libnl3 \ + libcurl \ + jansson \ + libxil \ + libwebsockets \ + zeromq \ + nanomsg \ + iproute \ + kernel-modules-extra \ + module-init-tools + +# Install the application +RUN dnf -y --refresh install \ villas-node \ villas-node-doc