From 4bc7300759a8f12cea0caf7744ac52c1ca4fa31d Mon Sep 17 00:00:00 2001 From: enp0s3 Date: Sun, 25 Dec 2022 17:58:34 +0200 Subject: [PATCH] Dockerfile: add ipfs to the image Signed-off-by: enp0s3 --- Dockerfile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 85ca3e9..f945624 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,13 +21,27 @@ # docker run -ti -e HOST_IP=$(ip route | grep -v docker | awk '{if(NF==11) print $9}') --entrypoint /bin/bash local/pl-ipfs # +FROM busybox:stable +LABEL maintainer="enp0s3 " + +ENV TARFILE ipfs.tar.gz +ENV IPFS_VER v0.17.0 +ENV IPFS_URL https://github.com/ipfs/kubo/releases/download/v0.17.0/kubo_${IPFS_VER}_darwin-amd64.tar.gz + +WORKDIR /tmp + +RUN wget -O ${TARFILE} ${IPFS_URL} && \ + tar -xf ${TARFILE} + FROM python:3.9.1-slim-buster LABEL maintainer="sgallagher " WORKDIR /usr/local/src +COPY --from=0 /tmp/kubo/ipfs /usr/local/bin COPY requirements.txt . -RUN pip install -r requirements.txt +RUN chmod +x /usr/local/bin/ipfs && \ + pip install -r requirements.txt COPY . . RUN pip install .