Improving rebuild control.

This commit is contained in:
Sergiotarxz 2023-07-01 05:01:32 +02:00
parent 90467e0bb4
commit 93a28819a7
2 changed files with 3 additions and 1 deletions

View File

@ -1,7 +1,7 @@
FROM debian:bookworm-slim
RUN apt update
RUN apt install -y git pwgen liblocal-lib-perl libpq-dev nodejs sassc npm
RUN apt install -y git pwgen liblocal-lib-perl libpq-dev nodejs sassc npm vim
RUN useradd -m las_tres -d /var/lib/las_tres -u {{UID}}
RUN mkdir -p /var/lib/las_tres/LasTres
RUN chown -R las_tres:las_tres /var/lib/las_tres/LasTres

View File

@ -36,6 +36,8 @@ fi
if [[ $OLD_CHECKSUM_DOCKER != $CURRENT_CHECKSUM_DOCKER ]]; then
echo "$OLD_CHECKSUM_DOCKER != $CURRENT_CHECKSUM_DOCKER rebuilding docker";
echo $SUDO docker container rm LasTresDocker
$SUDO docker container rm LasTresDocker
echo $SUDO docker build $DOCKER_BUILD_PARAMS
$SUDO docker build $DOCKER_BUILD_PARAMS
echo $CURRENT_CHECKSUM_DOCKER > $CHECKSUM_DOCKER_FILE