Dies ist eine alte Version des Dokuments!
RUN cat <<'EOF' > /etc/nginx/sites-available/default server { listen 80 default_server; listen [::]:80 default_server; root /var/www/html; index index.php index.html index.htm index.nginx-debian.html; server_name _; location / { try_files $uri $uri/ =404; } # pass PHP scripts to FastCGI server location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; } # deny access to .htaccess files #location ~ /\.ht { # deny all; #} } EOF
ln -snf /usr/share/zoneinfo/Europe/Vienna /etc/localtime && echo Europe/Vienna > /etc/timezone dpkg --configure -a DEBIAN_FRONTEND=noninteractive apt update && apt install -y nginx php8.1-fpm mariadb-server php-mysqli cat <<'EOF' > /etc/nginx/sites-available/default server { listen 80 default_server; root /var/www/html; index index.php index.html index.nginx-debian.html; server_name _; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; } location ~ /\.ht { deny all; } } EOF
FROM ubuntu:22.04 ARG DEBIAN_FRONTEND=noninteractive RUN ln -snf /usr/share/zoneinfo/Europe/Vienna /etc/localtime && echo Europe/Vienna > /etc/timezone RUN dpkg --configure -a RUN apt update && apt install -y nginx php-fpm mariadb-server php-mysqli RUN cat <<'EOF' > /etc/nginx/sites-available/default server { listen 80 default_server; root /var/www/html; index index.php index.html index.nginx-debian.html; server_name _; location / { try_files $uri $uri/ =404; } location ~ \.php$ { include snippets/fastcgi-php.conf; fastcgi_pass unix:/run/php/php8.1-fpm.sock; } location ~ /\.ht { deny all; } } EOF