Merge pull request #6888 from alvasw/seednode_multistage_docker_build

seednode-docker: Switch to multi-stage build
This commit is contained in:
Alejandro García 2023-10-02 16:46:28 +00:00 committed by GitHub
commit 4c8abaab9f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View File

@ -3,6 +3,8 @@ plugins {
id 'bisq.gradle.app_start_plugin.AppStartPlugin'
}
distTar.enabled = true
mainClassName = 'bisq.seednode.SeedNodeMain'
dependencies {

View File

@ -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 \
@ -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
ENTRYPOINT ["bash", "bisq-seednode"]
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", "/seednode/bin/seednode"]