2024-04-25 23:55:27 +03:00
|
|
|
FROM debian:12-slim AS downloader
|
2024-07-19 18:29:45 +03:00
|
|
|
ARG VERSION
|
2024-04-04 20:42:56 +03:00
|
|
|
|
2024-04-25 23:55:27 +03:00
|
|
|
WORKDIR /tmp/download
|
2024-04-04 20:42:56 +03:00
|
|
|
|
|
|
|
RUN apt-get update
|
2024-07-19 18:29:45 +03:00
|
|
|
RUN apt-get install unzip -y
|
2024-04-04 20:42:56 +03:00
|
|
|
|
2024-07-19 18:29:45 +03:00
|
|
|
ADD "https://github.com/kinode-dao/kinode/releases/download/${VERSION}/kinode-x86_64-unknown-linux-gnu.zip" kinode-x86_64-unknown-linux-gnu.zip
|
2024-04-25 23:55:27 +03:00
|
|
|
RUN unzip kinode-x86_64-unknown-linux-gnu.zip
|
2024-04-04 20:42:56 +03:00
|
|
|
|
|
|
|
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
|
2024-04-04 20:42:56 +03:00
|
|
|
|
|
|
|
ENTRYPOINT [ "/bin/kinode" ]
|
2024-04-05 00:04:55 +03:00
|
|
|
CMD [ "/kinode-home" ]
|
2024-04-04 20:42:56 +03:00
|
|
|
|
|
|
|
EXPOSE 8080
|
|
|
|
EXPOSE 9000
|