Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dockerfile: add ipfs to the image #1

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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 <[email protected]>"

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 <[email protected]>"

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 .
Expand Down