mirror of
https://github.com/uqbar-dao/nectar.git
synced 2024-11-22 03:04:35 +03:00
c720e8d41c
(todo: use a different account other than my personal one as the namespace)
32 lines
640 B
Docker
32 lines
640 B
Docker
# syntax=docker/dockerfile:1
|
|
FROM rust AS builder
|
|
|
|
COPY . /tmp/source
|
|
|
|
WORKDIR /tmp/source
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install clang -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
|
|
|
|
FROM debian:12-slim
|
|
|
|
RUN apt-get update
|
|
RUN apt-get install openssl -y
|
|
|
|
COPY --from=builder /tmp/source/target/release/kinode /bin/kinode
|
|
|
|
ENV LD_LIBRARY_PATH=/lib
|
|
ENV RUST_BACKTRACE=full
|
|
ENTRYPOINT [ "/bin/kinode" ]
|
|
CMD [ "/kinode" ]
|
|
|
|
EXPOSE 8080
|
|
EXPOSE 9000 |