From 217f5060ce9381825922041516bdaa4393b6cd50 Mon Sep 17 00:00:00 2001 From: status404 Date: Fri, 1 Nov 2024 13:53:41 +0300 Subject: [PATCH] dockerfile: add NOCACHE ARG --- docker-compose.yml | 1 - docker/Dockerfile | 5 ++++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docker-compose.yml b/docker-compose.yml index dc7ca3d..a5879b7 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -22,7 +22,6 @@ services: ports: - 127.0.0.1:4999:4999 - 127.0.0.1:80:80 - - 127.0.0.1:443:443 volumes: home: diff --git a/docker/Dockerfile b/docker/Dockerfile index 5d3fd17..47e08a4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -12,7 +12,7 @@ FROM debian:bullseye AS updated-debian SHELL ["/bin/bash", "-exo", "pipefail", "-c"] LABEL name="BitDeals Module" -EXPOSE 4999/tcp 80/tcp 443/tcp +EXPOSE 4999/tcp 80/tcp ## Debian update; install dependencies ARG DEBIAN_FRONTEND="noninteractive" \ @@ -76,6 +76,9 @@ RUN su -l --shell /bin/bash $UNAME -c 'wget https://raw.githubusercontent.com/li sed -i '/$WGET / s/$WGET.*$/while true; do & \&\& break; done/' install.sh ; \ ./install.sh --verbose --build-boost --build-zmq --disable-shared +## Do not use cache when building next layers of the image. +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' ; \