mirror of
https://github.com/bisq-network/bisq.git
synced 2025-01-19 05:44:05 +01:00
Merge pull request #6888 from alvasw/seednode_multistage_docker_build
seednode-docker: Switch to multi-stage build
This commit is contained in:
commit
4c8abaab9f
@ -3,6 +3,8 @@ plugins {
|
||||
id 'bisq.gradle.app_start_plugin.AppStartPlugin'
|
||||
}
|
||||
|
||||
distTar.enabled = true
|
||||
|
||||
mainClassName = 'bisq.seednode.SeedNodeMain'
|
||||
|
||||
dependencies {
|
||||
|
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user