From dcf4107278221174a8d7a5aae6a4c4a3e261c04a Mon Sep 17 00:00:00 2001 From: Jeffrey Paul Date: Mon, 1 Oct 2018 15:25:37 -0700 Subject: [PATCH] fewer layers --- Dockerfile | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/Dockerfile b/Dockerfile index ec086a0..d260511 100644 --- a/Dockerfile +++ b/Dockerfile @@ -3,18 +3,16 @@ MAINTAINER Jeffrey Paul ENV DEBIAN_FRONTEND=noninteractive -RUN apt update -# upgrading packages against advice of phusion -RUN apt upgrade -y +RUN \ + apt update && \ + apt upgrade -y && \ + apt install -y golang git build-essential rsync && \ + go get -u github.com/ipfs/ipfs-update && \ + /root/go/bin/ipfs-update install latest && \ + rm -rf /root/go && \ + adduser --system --group ipfs && \ + mkdir /etc/service/sync /etc/service/ipfsd -RUN apt install -y golang git build-essential rsync - -RUN go get -u github.com/ipfs/ipfs-update -RUN /root/go/bin/ipfs-update install latest -RUN rm -rf /root/go - -RUN adduser --system --group ipfs -RUN mkdir /etc/service/sync /etc/service/ipfsd ADD ./sync.run /etc/service/sync/run ADD ./ipfsd.run /etc/service/ipfsd/run RUN chmod +x /etc/service/*/run