Skip to content

Commit

Permalink
Merge pull request #6888 from alvasw/seednode_multistage_docker_build
Browse files Browse the repository at this point in the history
seednode-docker: Switch to multi-stage build
  • Loading branch information
alejandrogarcia83 authored Oct 2, 2023
2 parents b3248ad + ed7587b commit 4c8abaa
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 2 additions & 0 deletions seednode/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ plugins {
id 'bisq.gradle.app_start_plugin.AppStartPlugin'
}

distTar.enabled = true

mainClassName = 'bisq.seednode.SeedNodeMain'

dependencies {
Expand Down
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 4c8abaa

Please sign in to comment.