mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-22 11:22:59 +03:00
just download from gh releases
This commit is contained in:
parent
b699f3fe9e
commit
0991677a8e
22
Dockerfile
22
Dockerfile
@ -1,30 +1,20 @@
|
||||
# syntax=docker/dockerfile:1
|
||||
FROM rust AS builder
|
||||
FROM debian:12-slim AS downloader
|
||||
|
||||
COPY . /tmp/source
|
||||
|
||||
WORKDIR /tmp/source
|
||||
WORKDIR /tmp/download
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install clang -y
|
||||
RUN apt-get install wget curl openssl jq unzip -y
|
||||
|
||||
RUN cargo install wasm-tools && \
|
||||
rustup install nightly && \
|
||||
rustup target add wasm32-wasi && \
|
||||
rustup target add wasm32-wasi --toolchain nightly && \
|
||||
cargo install cargo-wasi
|
||||
|
||||
RUN cargo +nightly build -p kinode --release
|
||||
RUN wget "https://github.com/kinode-dao/kinode/releases/download/$(curl https://api.github.com/repos/kinode-dao/kinode/releases | jq -r '.[0].tag_name')/kinode-x86_64-unknown-linux-gnu.zip"
|
||||
RUN unzip kinode-x86_64-unknown-linux-gnu.zip
|
||||
|
||||
FROM debian:12-slim
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install openssl -y
|
||||
|
||||
COPY --from=builder /tmp/source/target/release/kinode /bin/kinode
|
||||
COPY --from=downloader /tmp/download/kinode /bin/kinode
|
||||
|
||||
ENV LD_LIBRARY_PATH=/lib
|
||||
ENV RUST_BACKTRACE=full
|
||||
ENTRYPOINT [ "/bin/kinode" ]
|
||||
CMD [ "/kinode-home" ]
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user