docker-kubo-alpine/Dockerfile
James Andariese 2846885c7c
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
add dockerfile
2024-03-02 21:17:08 -06:00

23 lines
434 B
Docker

ARG RELEASE=v0.26.0
ARG ALPINE=3.19
ARG GOLANG=1.22
FROM golang:${GOLANG}-alpine${ALPINE} AS builder
ARG RELEASE
RUN apk add --no-cache git
RUN git clone https://github.com/ipfs/kubo -b "release-$RELEASE"
WORKDIR kubo
RUN \
for cmd in \
ipfs \
ipfswatch \
;do (cd cmd/$cmd && go build -o /$cmd);done
FROM alpine:${ALPINE}
COPY --from=builder /ipfs /bin/ipfs
COPY --from=builder /ipfswatch /bin/ipfswatch
CMD ["ipfs"]