From 4147a914ac2030ef357c30bb9d7e728bed2f378c Mon Sep 17 00:00:00 2001 From: Saleem Rashid Date: Fri, 29 Sep 2017 19:46:38 +0100 Subject: [PATCH] Dockerfile: Use multi-line instructions Minimize the number of layers and call apt-get update properly --- Dockerfile | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 08213ec..ecca657 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,8 @@ FROM debian:9 -# update repositories - -RUN apt-get update - # install build tools and dependencies -RUN apt-get install -y build-essential git python python-ecdsa gcc-arm-none-eabi -RUN apt-get install -y protobuf-compiler libprotobuf-dev python-protobuf +RUN apt-get update && apt-get install -y \ + build-essential git python python-ecdsa gcc-arm-none-eabi \ + protobuf-compiler libprotobuf-dev python-protobuf