From 4c51a8975cef93cbfc2020a4db59fa2085916a1c Mon Sep 17 00:00:00 2001 From: durch Date: Tue, 1 Oct 2024 16:39:47 +0200 Subject: [PATCH] Initial stab --- nym-api.dockerfile | 7 +++++++ nym-api/entrypoint.sh | 5 +++++ 2 files changed, 12 insertions(+) create mode 100644 nym-api.dockerfile create mode 100755 nym-api/entrypoint.sh 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