Skip to content

Commit 46e0c40

Browse files
committed
INIT Docker settings
1 parent 80d3577 commit 46e0c40

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

.docker/Dockerfile

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: '3.4'
2+
3+
services:
4+
php:
5+
build:
6+
context: .
7+
dockerfile: .docker/Dockerfile
8+
target: dom_handler_php
9+
volumes:
10+
- .:/var/www/html:rw
11+
container_name: dom_handler

0 commit comments

Comments
 (0)