The dashticz part is below.After building an new image, i still get "there is a new version 3.8.2" when i execute the dashticz docker.
I thougt that by delete the old container and image and creating it again, this problem is solved.. but still getting it...
After execute the below procedure i have 3.8.0, and not 3.8.2
docker-compose.yml
Code: Select all
dashticz:
container_name: dashticz
build: /home/pi/pvkmenu/IOTstack/services/dashticz/.
#context: .
restart: always
ports:
- "80:80"
volumes:
- /etc/localtime:/etc/localtime:ro
- type: bind
source: /home/pi/pvkmenu/IOTstack/volumes/dashticz/
target: /var/www/html/
Code: Select all
FROM php:7.4-apache
ARG tz="Europe/Amsterdam"
RUN printf "[PHP]\ndate.timezone = $tz\n" > /usr/local/etc/php/conf.d/tzone.ini && \
mv "$PHP_INI_DIR/php.ini-production" "$PHP_INI_DIR/php.ini"
RUN apt update && apt install git -y
RUN echo "if [ ! -f /var/www/html/version.txt ]; then git clone --depth 1 --branch beta https://github.com/Dashticz/dashticz /var/www/html; chmod -R a+rw /var/www/html/custom; chmod -R a+rw /var/www/html/img;fi; apache2-foreground" > /usr/bin/init.sh && chmod +x /usr/bin/init.sh
CMD ["/usr/bin/init.sh"]
SHELL ["/bin/bash", "-c"]