Docker image for gateway

This commit is contained in:
Jędrzej Stuczyński
2021-12-15 16:11:05 +00:00
parent e6259c184c
commit 60dc125735
+10
View File
@@ -0,0 +1,10 @@
FROM rust:1.56.1 as builder
ARG NYM_VERSION="develop"
RUN git clone https://github.com/nymtech/nym.git && cd nym && git checkout $NYM_VERSION
RUN cargo install --path /nym/gateway
FROM debian:buster-slim
RUN apt-get update && apt-get install -y openssl ca-certificates && rm -rf /var/lib/apt/lists/*
COPY --from=builder /usr/local/cargo/bin/nym-gateway /usr/local/bin/nym-gateway
ENTRYPOINT ["nym-gateway"]