Skip to content

Commit 41fa2fc

Browse files
committed
feat: aggiornamento immagine php e rilevamento ultima versione
1 parent 118c47d commit 41fa2fc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

docker/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Usa l'immagine ufficiale di PHP con Apache
2-
FROM php:8.3-apache
2+
FROM php:8.3-apache-bullseye
33

44
# Abilita i moduli richiesti
55
RUN apt-get update && apt-get install -y \
@@ -35,7 +35,7 @@ WORKDIR /var/www/html
3535
EXPOSE 80
3636

3737
# Clona il repository
38-
RUN wget -O openstamanager.zip https://github.com/devcode-it/openstamanager/releases/download/v2.7.1/openstamanager-2.7.1.zip && unzip openstamanager.zip
38+
RUN last_version_v=$(curl -s https://api.github.com/repos/devcode-it/openstamanager/releases/latest | grep tag_name | cut -d '"' -f 4) && last_version=$(echo $last_version_v | sed 's/^v//') && wget -O openstamanager.zip "https://github.com/devcode-it/openstamanager/releases/download/${last_version_v}/openstamanager-${last_version}.zip" && unzip openstamanager.zip
3939

4040
RUN mkdir -p /var/www/html/files/temp /var/www/html/logs
4141
RUN chown -R $USER:www-data /var/www/html/

0 commit comments

Comments
 (0)