Skip to content

Commit

Permalink
seednode-docker: Switch to multi-stage build
Browse files Browse the repository at this point in the history
  • Loading branch information
alvasw committed Sep 28, 2023
1 parent 84921c6 commit ed7587b
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions seednode/deployment_v2/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM azul/zulu-openjdk:11.0.20-11.66.15
FROM azul/zulu-openjdk:11.0.20-11.66.15 as build

RUN apt-get update \
&& apt-get install git -y \
Expand All @@ -8,6 +8,11 @@ RUN git config --global advice.detachedHead false \
&& git clone --depth 1 --branch v1.9.13 https://github.com/bisq-network/bisq.git

WORKDIR /bisq
RUN ./gradlew build -x test
RUN ./gradlew seednode:distTar

FROM azul/zulu-openjdk:11.0.20-11.66.15

COPY --from=build /bisq/bisq/seednode/build/distributions/seednode.tar /
RUN tar xvf /seednode.tar

ENTRYPOINT ["bash", "bisq-seednode"]
ENTRYPOINT ["bash", "/seednode/bin/seednode"]

0 comments on commit ed7587b

Please sign in to comment.