From afae0d672aa433e5bc7b5bdd842fcbf6a9e997e5 Mon Sep 17 00:00:00 2001 From: status404 Date: Mon, 4 Aug 2025 14:29:20 +0300 Subject: [PATCH] Dockerfile fix --- docker/Dockerfile | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/docker/Dockerfile b/docker/Dockerfile index 35f0898..3ecad75 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -78,16 +78,17 @@ RUN su -l --shell /bin/bash $UNAME -c 'wget https://raw.githubusercontent.com/li ARG NOCACHE=0 ## Install BitDeals module (apostol-dm) -#cmake -DCMAKE_BUILD_TYPE=Debug . -B cmake-build-debug' ; \ -RUN su -l --shell /bin/bash $UNAME -c 'cd '$UHOME' ; \ - git clone https://git.bitdeals.org/private/apostol-dm.git ; \ - cd apostol-dm ; \ - ./configure ; \ - cd cmake-build-release ; \ - make' ; \ - git config --global --add safe.directory $UHOME/apostol-dm ;\ - cd $UHOME/apostol-dm/cmake-build-release ;\ - make install +ENV BUILD_MODE='release' +#ENV BUILD_MODE='debug' + +COPY . $UHOME/apostol-dm + +RUN cd $UHOME/apostol-dm ; \ + git config --global --add safe.directory $UHOME ;\ + ./configure --$BUILD_MODE; \ + cd cmake-build-$BUILD_MODE; \ + make ; \ + make install ## to get web-bitdeals /app directory FROM registry.bitdeals.org/web-bitdeals as web-bitdeals