From 3d5a6509e9f5d4cf7330c373ad6238823fe5b178 Mon Sep 17 00:00:00 2001 From: oldnick85 Date: Thu, 9 Feb 2023 19:02:13 +0300 Subject: [PATCH] [add] yggdrasil genkeys to image --- Dockerfile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Dockerfile b/Dockerfile index 597c9b9..2515145 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,6 +42,8 @@ WORKDIR /BUILD_YGGDRASIL/ RUN git clone --depth 1 --branch $YGGDRASIL_VERSION https://github.com/yggdrasil-network/yggdrasil-go.git ENV CGO_ENABLED=0 WORKDIR /BUILD_YGGDRASIL/yggdrasil-go +# add genkeys to build +RUN sed -i -e 's/yggdrasil yggdrasilctl/yggdrasil yggdrasilctl genkeys/g' build RUN ./build FROM ubuntu:${UBUNTU_VERSION} @@ -89,6 +91,7 @@ EXPOSE 9001 WORKDIR /YGGDRASIL/ COPY --from=builder_yggdrasil /BUILD_YGGDRASIL/yggdrasil-go/yggdrasil . COPY --from=builder_yggdrasil /BUILD_YGGDRASIL/yggdrasil-go/yggdrasilctl . +COPY --from=builder_yggdrasil /BUILD_YGGDRASIL/yggdrasil-go/genkeys . COPY yggdrasil.conf . WORKDIR / COPY entrypoint.sh .