|
@@ -1,60 +0,0 @@
|
|
|
-FROM php:8.2-fpm
|
|
|
-
|
|
|
-# Update packages
|
|
|
-
|
|
|
-RUN apt-get update
|
|
|
-
|
|
|
-# Install PHP and composer dependencies
|
|
|
-
|
|
|
-RUN apt-get install -qq git curl libmcrypt-dev libjpeg-dev libpng-dev libfreetype6-dev libbz2-dev
|
|
|
-
|
|
|
-# Clear out the local repository of retrieved package files
|
|
|
-
|
|
|
-# RUN apt-get clean
|
|
|
-
|
|
|
-# Install needed extensions
|
|
|
-
|
|
|
-# Here you can install any other extension that you need during the test and deployment process
|
|
|
-
|
|
|
-RUN apt-get clean; docker-php-ext-install pdo pdo_mysql mcrypt zip gd pcntl opcache bcmath
|
|
|
-
|
|
|
-# Installs Composer to easily manage your PHP dependencies.
|
|
|
-
|
|
|
-RUN curl –silent –show-error https://getcomposer.org/installer | php — –install-dir=/usr/local/bin –filename=composer
|
|
|
-
|
|
|
-# Install Node
|
|
|
-
|
|
|
-RUN apt-get update &&\
|
|
|
-
|
|
|
- apt-get install -y –no-install-recommends gnupg &&\
|
|
|
-
|
|
|
- curl -sL https://deb.nodesource.com/setup_10.x | bash – &&\
|
|
|
-
|
|
|
- apt-get update &&\
|
|
|
-
|
|
|
- apt-get install -y –no-install-recommends nodejs &&\
|
|
|
-
|
|
|
- npm config set registry https://registry.npm.taobao.org –global &&\
|
|
|
-
|
|
|
- npm install –global gulp-cli
|
|
|
-
|
|
|
-CMD php-fpmNotes:
|
|
|
-
|
|
|
-web:
|
|
|
-
|
|
|
-build:
|
|
|
-
|
|
|
- context: ./
|
|
|
-
|
|
|
- dockerfile: web.dockerfile
|
|
|
-
|
|
|
-working_dir: /var/www
|
|
|
-
|
|
|
-volumes_from:
|
|
|
-
|
|
|
- – app
|
|
|
-
|
|
|
-ports:
|
|
|
-
|
|
|
- – 8080:80Notes:
|
|
|
-
|