docker-ipfs-keygen/Dockerfile
James Andariese df736e0578
All checks were successful
Github Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
add docker build
2024-03-02 14:39:23 -06:00

17 lines
297 B
Docker

FROM golang:1.21-alpine AS build
WORKDIR /ipfs-key
ADD go.mod go.sum /ipfs-key
RUN echo 'package main;func main() {}' > main.go
RUN go get && rm main.go
ADD main.go /ipfs-key
RUN go build
FROM alpine:3.19
COPY --from=build /ipfs-key/ipfs-key /bin/ipfs-key
ENTRYPOINT ["/bin/ipfs-key"]
CMD []