We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 80d3577 commit 46e0c40Copy full SHA for 46e0c40
.docker/Dockerfile
@@ -0,0 +1,15 @@
1
+FROM php:7.2-apache AS dom_handler_php
2
+
3
+COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
4
+COPY . /var/www/html
5
6
+RUN apt-get update \
7
+ && apt-get install -y zip git
8
9
+ENV COMPOSER_ALLOW_SUPERUSER=1
10
11
+WORKDIR /var/www/html
12
13
+RUN composer self-update \
14
+ && composer validate \
15
+ && composer install --prefer-dist --no-scripts --no-progress --no-suggest
docker-compose.yml
@@ -0,0 +1,11 @@
+version: '3.4'
+services:
+ php:
+ build:
+ context: .
+ dockerfile: .docker/Dockerfile
+ target: dom_handler_php
+ volumes:
+ - .:/var/www/html:rw
+ container_name: dom_handler
0 commit comments