From 29b8ea7d67e9b71c94da05cb8501e01eaea94e64 Mon Sep 17 00:00:00 2001 From: ficapy Date: Sun, 21 Aug 2016 16:34:48 +0800 Subject: [PATCH] Dockerfile combine RUN command --- Dockerfile | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Dockerfile b/Dockerfile index 398ddf6..c144824 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,12 +1,13 @@ FROM ubuntu:14.04 -RUN apt-get update -RUN apt-get -y install python-software-properties software-properties-common -RUN add-apt-repository ppa:chris-lea/libsodium -RUN echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list -RUN echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list -RUN apt-get update -RUN apt-get install -y libsodium-dev python-pip +RUN apt-get update && apt-get install -y \ + python-software-properties \ + software-properties-common \ + && add-apt-repository ppa:chris-lea/libsodium \ + && echo "deb http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list \ + && echo "deb-src http://ppa.launchpad.net/chris-lea/libsodium/ubuntu trusty main" >> /etc/apt/sources.list \ + && apt-get update \ + && apt-get install -y libsodium-dev python-pip RUN pip install shadowsocks