diff --git a/deploy/Dockerfile b/deploy/Dockerfile new file mode 100644 index 0000000..bf21c07 --- /dev/null +++ b/deploy/Dockerfile @@ -0,0 +1,10 @@ +FROM php:5.6.39-cli +RUN docker-php-ext-install mysqli && docker-php-ext-install mysql + +RUN apt --fix-broken install +RUN apt-get update +RUN apt-get install -y zip imagemagick mplayer ffmpeg curl wget tesseract-ocr + +RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer + +WORKDIR video-processor/ diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..2fb5fe2 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,11 @@ +version: '3.2' +services: + processor: + build: + context: deploy/ + dockerfile: Dockerfile + volumes: + - type: bind + source: . + target: /root/video-processor/ + container_name: rs_video_processor