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