ipfs-ubuntu-mirror/Dockerfile

29 lines
693 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
2018-10-01 22:25:37 +00:00
RUN \
apt update && \
apt upgrade -y && \
2018-10-02 01:39:32 +00:00
apt install -y golang git build-essential rsync debmirror && \
2018-10-01 22:25:37 +00:00
go get -u github.com/ipfs/ipfs-update && \
/root/go/bin/ipfs-update install latest && \
rm -rf /root/go && \
2018-10-02 06:34:19 +00:00
adduser --system --group --home /var/lib/ipfs ipfs && \
2018-10-01 22:25:37 +00:00
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
2018-10-02 23:26:42 +00:00
VOLUME /var/lib/ipfs
VOLUME /var/lib/ubuntumirror
# ipfs ports
EXPOSE 4001
EXPOSE 4002/udp
EXPOSE 5001
EXPOSE 8080
EXPOSE 8081