Add docker

This commit is contained in:
David Arendsen 2023-02-10 14:22:42 +01:00
commit ee2dfb943b
2 changed files with 33 additions and 0 deletions

22
docker-compose.yml Normal file
View file

@ -0,0 +1,22 @@
version: '3'
services:
code:
image: busybox
command: /bin/true
container_name: fluxquerybuilder
networks:
- api
php:
build: ./docker/php
container_name: fluxquerybuilder_php
volumes:
- ./:/var/www
networks:
- api
networks:
api:
driver: bridge

11
docker/php/Dockerfile Normal file
View file

@ -0,0 +1,11 @@
FROM php:7.2-cli
COPY . /var/www
WORKDIR /var/www
RUN apt-get update && \
apt-get install -y \
curl \
git \
gnupg \
unzip
RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer