20 lines
432 B
Docker
20 lines
432 B
Docker
|
FROM ubuntu:16.04
|
||
|
|
||
|
VOLUME /var/lib/ipfs
|
||
|
ENV IPFS_PATH /var/lib/ipfs
|
||
|
|
||
|
ADD \
|
||
|
https://dist.ipfs.io/go-ipfs/v0.4.4/go-ipfs_v0.4.4_linux-amd64.tar.gz \
|
||
|
/usr/local/src
|
||
|
|
||
|
ADD . /var/generate-pinlist
|
||
|
|
||
|
RUN \
|
||
|
cd /usr/local/src && \
|
||
|
tar zxvf go-ipfs_v0.4.4_linux-amd64.tar.gz && \
|
||
|
mv go-ipfs/ipfs . && \
|
||
|
cd /var/generate-pinlist && \
|
||
|
pip -r requirements.txt && \
|
||
|
python generate.py && \
|
||
|
ipfs add pinlist.txt
|