| Server IP : 159.203.156.69 / Your IP : 216.73.216.37 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/php/sushashon/ |
Upload File : |
# Use PHP 8.3 FPM base image
FROM php:8.2-fpm
# Set Composer memory limit globally
ENV COMPOSER_MEMORY_LIMIT=-1
# Install system dependencies
RUN apt-get update && apt-get install -y \
nginx \
zip \
unzip \
git \
curl \
default-mysql-client \
libpng-dev \
libonig-dev \
libxml2-dev \
libzip-dev \
libfreetype6-dev \
libjpeg62-turbo-dev \
libssl-dev \
zlib1g-dev \
pkg-config \
g++ \
make \
&& docker-php-ext-configure gd --with-freetype --with-jpeg \
&& docker-php-ext-install gd \
&& docker-php-ext-install \
pdo_mysql \
mbstring \
exif \
pcntl \
bcmath \
zip \
&& rm -rf /var/lib/apt/lists/*
# Install Composer
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
# Set working directory
WORKDIR /var/www/html
# Copy project files
COPY . /var/www/html
# Install Composer dependencies
RUN composer install --no-interaction --optimize-autoloader
# Configure Nginx
COPY nginx.conf /etc/nginx/nginx.conf
COPY site.conf /etc/nginx/conf.d/default.conf
# Expose HTTP port
EXPOSE 80
# Start PHP-FPM + Nginx in foreground
CMD ["sh", "-c", "php-fpm -F & nginx -g 'daemon off;'"]