2018-10-01 21:01:32 +00:00
|
|
|
FROM phusion/baseimage:0.11
|
|
|
|
MAINTAINER Jeffrey Paul <sneak@sneak.berlin>
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
|
2018-10-01 22:25:37 +00:00
|
|
|
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
|
2018-10-01 21:01:32 +00:00
|
|
|
|
|
|
|
ADD ./sync.run /etc/service/sync/run
|
|
|
|
ADD ./ipfsd.run /etc/service/ipfsd/run
|
|
|
|
RUN chmod +x /etc/service/*/run
|
|
|
|
|