Dockerfile: Use multi-line instructions

Minimize the number of layers and call apt-get update properly
This commit is contained in:
Saleem Rashid 2017-09-29 19:46:38 +01:00 committed by Pavol Rusnak
parent 4b8ac90d10
commit 4147a914ac
No known key found for this signature in database
GPG Key ID: 91F3B339B9A02A3D
1 changed files with 3 additions and 6 deletions

View File

@ -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