2022-11-21 13:11:28 -05:00
|
|
|
FROM gradle:jdk11
|
|
|
|
|
|
|
|
RUN set -ex && \
|
|
|
|
apt update && \
|
|
|
|
apt --no-install-recommends --yes install \
|
|
|
|
make \
|
|
|
|
git
|
|
|
|
|
|
|
|
RUN set -ex && adduser --system --group --disabled-password pricenode && \
|
|
|
|
mkdir -p /home/pricenode && \
|
|
|
|
chown -R pricenode:pricenode /home/pricenode
|
|
|
|
|
|
|
|
USER pricenode
|
|
|
|
|
|
|
|
RUN set -ex && git clone --recursive https://github.com/haveno-dex/haveno-pricenode.git /home/pricenode
|
|
|
|
|
|
|
|
WORKDIR /home/pricenode
|
|
|
|
|
2023-09-11 08:58:37 -04:00
|
|
|
RUN set -ex && git fetch origin && git checkout origin/main
|
|
|
|
|
2023-02-16 18:51:36 -05:00
|
|
|
RUN ./gradlew clean build -x test
|
2022-11-21 13:11:28 -05:00
|
|
|
|
|
|
|
ENTRYPOINT [ "./haveno-pricenode" ]
|