dockerfile: add NOCACHE ARG

This commit is contained in:
2024-11-01 13:53:41 +03:00
parent 044757d380
commit 217f5060ce
2 changed files with 4 additions and 2 deletions

View File

@@ -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:

View File

@@ -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' ; \