PHP Classes

File: Dockerfile

Recommend this page to a friend!
  Classes of Mateo   PHP Banking System API   Dockerfile   Download  
File: Dockerfile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: PHP Banking System API
API to implement banking transactions
Author: By
Last change:
Date: 6 months ago
Size: 724 bytes
 

Contents

Class file image Download
FROM php:8.2-apache COPY --from=composer:2.1.8 /usr/bin/composer /usr/local/bin/composer # Install dependencies RUN apt-get update \ && docker-php-ext-install pdo_mysql \ && docker-php-ext-enable pdo_mysql \ && apt-get install -y \ curl \ zip \ unzip # Enable apache modules # Routing RUN a2enmod rewrite \ && service apache2 restart # Copy code COPY src/ /var/www/html/src/ COPY public/ /var/www/html/public/ COPY index.php /var/www/html/ COPY composer.json /var/www/html/ COPY .htaccess /var/www/html/ COPY .env /var/www/html/ WORKDIR /var/www/html/ # Install dependencies RUN composer install \ --no-interaction \ --no-plugins \ --no-scripts \ --prefer-dist \ --no-dev