PHP8, Composer 2, Security-checker, all updated tot latest
10K+
# This file is available as prebuild image at: zenith/php8composer
FROM php:8-fpm
ENV TZ=Europe/Amsterdam
ENV DEBIAN_FRONTEND=nonintercative
RUN apt-get update --fix-missing -y \
&& apt-get dist-upgrade -y \
&& apt-get install -y \
git \
unzip \
wget \
curl \
&& apt-get autoremove -y \
&& php -r "readfile('http://getcomposer.org/installer');" | php -- --install-dir=/usr/bin/ --filename=composer \
&& rm -rf /var/lib/apt/lists/*
WORKDIR /downloads
RUN wget https://github.com/fabpot/local-php-security-checker/releases/download/v1.0.0/local-php-security-checker_1.0.0_linux_amd64 \
&& mv /downloads/local-php-security-checker_1.0.0_linux_amd64 /usr/local/bin/local-php-security-checker \
&& chmod +x /usr/local/bin/local-php-security-checker \
&& rm -rf /downloads
WORKDIR /var/www/html
version: "3"
services:
web:
image: nginx
ports:
- 80:80
volumes:
- .:/var/www/html
- ./.config/nginx.conf:/etc/nginx/conf.d/default.conf
- ./logs:/var/log/nginx
depends_on:
- php
php:
build: .config/.
user: "1000:1000"
volumes:
- .:/var/www/html
- ./logs:/var/log/nginx
server {
server_name _;
root /var/www/html/public;
index index.php index.html;
access_log /var/log/nginx/back-access.log;
error_log /var/log/nginx/back-error.log;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
# PHP-FPM Configuration Nginx
location ~ \.php$ {
try_files $uri = 404;
fastcgi_split_path_info ^(.+\.php)(/.+)$;
fastcgi_pass php:9000;
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param REQUEST_URI $request_uri;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
}
Content type
Image
Digest
sha256:741fa70da…
Size
197 MB
Last updated
14 days ago
docker pull zenith/php8composer