Skip to content

Commit

Permalink
Add Docker setup
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Jan 18, 2024
1 parent c8d4f6d commit b6c29a2
Show file tree
Hide file tree
Showing 5 changed files with 51 additions and 7 deletions.
6 changes: 6 additions & 0 deletions .docker/php81.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM php:8.1-cli

RUN apt-get update && \
apt-get install -y unzip

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
6 changes: 6 additions & 0 deletions .docker/php82.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM php:8.2-cli

RUN apt-get update && \
apt-get install -y unzip

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
6 changes: 6 additions & 0 deletions .docker/php83.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM php:8.3-cli

RUN apt-get update && \
apt-get install -y unzip

COPY --from=composer:latest /usr/bin/composer /usr/local/bin/composer
16 changes: 9 additions & 7 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/.github export-ignore
/tests export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
phpstan.neon.dist export-ignore
phpunit.xml.dist export-ignore
/.docker export-ignore
/.github export-ignore
/tests export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.scrutinizer.yml export-ignore
docker-compose.yml export-ignore
phpstan.neon.dist export-ignore
phpunit.xml.dist export-ignore
24 changes: 24 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
version: '3.8'

services:
php81:
build:
context: .
dockerfile: .docker/php81.Dockerfile
working_dir: /var/www/html
volumes:
- .:/var/www/html:delegated
php82:
build:
context: .
dockerfile: .docker/php82.Dockerfile
working_dir: /var/www/html
volumes:
- .:/var/www/html:delegated
php83:
build:
context: .
dockerfile: .docker/php83.Dockerfile
working_dir: /var/www/html
volumes:
- .:/var/www/html:delegated

0 comments on commit b6c29a2

Please sign in to comment.