Skip to content

Commit

Permalink
Merge pull request #4948 from nymtech/nym-api-container
Browse files Browse the repository at this point in the history
nym-api container
  • Loading branch information
tommyv1987 authored Oct 22, 2024
2 parents 0cb1163 + 4c51a89 commit 1532547
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
7 changes: 7 additions & 0 deletions nym-api.dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
5 changes: 5 additions & 0 deletions nym-api/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/sh

set -e

/usr/src/nym/target/release/nym-api init && /usr/src/nym/target/release/nym-api run

0 comments on commit 1532547

Please sign in to comment.