fewer layers

This commit is contained in:
Jeffrey Paul 2018-10-01 15:25:37 -07:00
parent 4ef62b87db
commit dcf4107278
Signed by: sneak
GPG Key ID: 052443F4DF2A55C2
1 changed files with 9 additions and 11 deletions

View File

@ -3,18 +3,16 @@ MAINTAINER Jeffrey Paul <sneak@sneak.berlin>
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