File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
55RUN apt-get update && apt-get install -y \
@@ -35,7 +35,7 @@ WORKDIR /var/www/html
3535EXPOSE 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
4040RUN mkdir -p /var/www/html/files/temp /var/www/html/logs
4141RUN chown -R $USER:www-data /var/www/html/
You can’t perform that action at this time.
0 commit comments