nectar/Dockerfile

23 lines
601 B
Docker
Raw Normal View History

2024-04-25 23:55:27 +03:00
FROM debian:12-slim AS downloader
2024-04-25 23:55:27 +03:00
WORKDIR /tmp/download
RUN apt-get update
2024-04-25 23:55:27 +03:00
RUN apt-get install wget curl openssl jq unzip -y
2024-05-15 19:42:55 +03:00
ADD https://api.github.com/repos/kinode-dao/kinode/releases releases.json
RUN wget "https://github.com/kinode-dao/kinode/releases/download/$(cat releases.json | jq -r '.[0].tag_name')/kinode-x86_64-unknown-linux-gnu.zip"
2024-04-25 23:55:27 +03:00
RUN unzip kinode-x86_64-unknown-linux-gnu.zip
FROM debian:12-slim
RUN apt-get update
RUN apt-get install openssl -y
2024-04-25 23:55:27 +03:00
COPY --from=downloader /tmp/download/kinode /bin/kinode
ENTRYPOINT [ "/bin/kinode" ]
2024-04-05 00:04:55 +03:00
CMD [ "/kinode-home" ]
EXPOSE 8080
EXPOSE 9000