Update Dockerfile versions and dependencies

- Update the base image for nodebuilder from node:18 to node:20
- Update the base image for php in Dockerfile and Dockerfile.daemon from php:8.1 to php:8.3
- Remove unnecessary packages installation in Dockerfile, Dockerfile.daemon, and Dockerfile.webui
- Set APACHE_DOCUMENT_ROOT, WEBCRON_ROOT, and TZ environment variables in all three Dockerfiles
This commit is contained in:
Jeroen De Meerleer 2023-12-07 14:43:01 +01:00
parent 77772dcaed
commit 34db79b3ab
Signed by: JeroenED
GPG Key ID: 28CCCB8F62BFADD6
3 changed files with 5 additions and 5 deletions

View File

@ -1,4 +1,4 @@
FROM node:18 as nodebuilder FROM node:20 as nodebuilder
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y git RUN apt-get update -y && apt-get install -y git
@ -8,7 +8,7 @@ RUN npm install
RUN npm run build RUN npm run build
RUN rm -rf node_modules RUN rm -rf node_modules
FROM php:8.1-apache FROM php:8.3-apache
ENV APACHE_DOCUMENT_ROOT=/var/www/webcron/public/ ENV APACHE_DOCUMENT_ROOT=/var/www/webcron/public/
ENV WEBCRON_ROOT=/var/www/webcron/ ENV WEBCRON_ROOT=/var/www/webcron/
ENV TZ=Europe/Brussels ENV TZ=Europe/Brussels

View File

@ -1,4 +1,4 @@
FROM php:8.1 FROM php:8.3
RUN apt-get update -y && apt-get install -y git RUN apt-get update -y && apt-get install -y git
ENV APACHE_DOCUMENT_ROOT=/var/www/webcron/public/ ENV APACHE_DOCUMENT_ROOT=/var/www/webcron/public/
ENV WEBCRON_ROOT=/var/www/webcron/ ENV WEBCRON_ROOT=/var/www/webcron/

View File

@ -1,4 +1,4 @@
FROM node:18 as nodebuilder FROM node:20 as nodebuilder
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update -y && apt-get install -y git RUN apt-get update -y && apt-get install -y git
@ -8,7 +8,7 @@ RUN npm install
RUN npm run build RUN npm run build
RUN rm -rf node_modules RUN rm -rf node_modules
FROM php:8.1-apache FROM php:8.3-apache
ENV APACHE_DOCUMENT_ROOT=/var/www/webcron/public/ ENV APACHE_DOCUMENT_ROOT=/var/www/webcron/public/
ENV WEBCRON_ROOT=/var/www/webcron/ ENV WEBCRON_ROOT=/var/www/webcron/
ENV TZ=Europe/Brussels ENV TZ=Europe/Brussels