2024-03-02 17:07:02 +00:00
|
|
|
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
|
2024-03-02 21:13:51 +00:00
|
|
|
ADD entrypoint.sh /entrypoint.sh
|
2024-03-02 17:07:02 +00:00
|
|
|
|
2024-03-02 21:13:51 +00:00
|
|
|
ENTRYPOINT ["/entrypoint.sh"]
|
|
|
|
CMD ["-type", "ed25519"]
|