Skip to content

Commit c4d2a32

Browse files
committed
provide docker settings
1 parent 6fe1b4d commit c4d2a32

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.docker/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM php:7.2-apache
2+
3+
RUN apt-get update \
4+
&& apt-get install -y libxml2-dev git zip zlib1g \
5+
&& docker-php-ext-install soap
6+
7+
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
8+
COPY . /var/www/html
9+
10+
WORKDIR /var/www/html

docker-compose.yml

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

0 commit comments

Comments
 (0)