diff --git a/nym-api.dockerfile b/nym-api.dockerfile new file mode 100644 index 0000000000..7ee95379dc --- /dev/null +++ b/nym-api.dockerfile @@ -0,0 +1,7 @@ +FROM rust:latest AS builder + +COPY ./ /usr/src/nym +WORKDIR /usr/src/nym/nym-api +RUN cargo build --release + +ENTRYPOINT ["/usr/src/nym/nym-api/entrypoint.sh"] diff --git a/nym-api/entrypoint.sh b/nym-api/entrypoint.sh new file mode 100755 index 0000000000..bf4c1942c3 --- /dev/null +++ b/nym-api/entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/sh + +set -e + +/usr/src/nym/target/release/nym-api init && /usr/src/nym/target/release/nym-api run \ No newline at end of file