ipfs-ubuntu-mirror/Dockerfile

22 lines
542 B
Docker
Raw Normal View History

2018-10-01 21:01:32 +00:00
FROM phusion/baseimage:0.11
MAINTAINER Jeffrey Paul <sneak@sneak.berlin>
ENV DEBIAN_FRONTEND=noninteractive
RUN apt update
# upgrading packages against advice of phusion
RUN apt upgrade -y
2018-10-01 21:20:50 +00:00
RUN apt install -y golang git build-essential rsync
2018-10-01 21:01:32 +00:00
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