Server : Apache/2.4.52 (Ubuntu) System : Linux vps-b5787e30 5.15.0-136-generic #147-Ubuntu SMP Sat Mar 15 15:53:30 UTC 2025 x86_64 User : zeljko ( 1002) PHP Version : 8.2.25 Disable Function : NONE Directory : /var/www/html/winidoc/ |
Upload File : |
FROM php:7.4-fpm # Arguments defined in docker-compose.yml ARG user ARG uid RUN apt-get update && apt-get install -y \ build-essential \ libpng-dev \ libjpeg62-turbo-dev \ libfreetype6-dev \ locales \ zip \ jpegoptim optipng pngquant gifsicle \ libzip-dev \ nano \ vim \ unzip \ git \ curl \ git-core \ openssl \ libssl-dev RUN curl -sL https://deb.nodesource.com/setup_14.x -o nodesource_setup.sh RUN bash nodesource_setup.sh RUN apt install nodejs -y RUN npm install -g npm RUN npm install -g yarn # Clear cache RUN apt-get clean && rm -rf /var/lib/apt/lists/* # Install extensions RUN docker-php-ext-install pdo_mysql zip exif pcntl bcmath gd # Get latest Composer COPY --from=composer:latest /usr/bin/composer /usr/bin/composer # Create system user to run Composer and Artisan Commands RUN useradd -G www-data,root -u $uid -d /home/$user $user RUN mkdir -p /home/$user/.composer && \ chown -R $user:$user /home/$user # Set working directory WORKDIR /var/www RUN composer install RUN yarn USER $user