From dcf046d8b4d4bd738de843d789fdf3bed503a3ca Mon Sep 17 00:00:00 2001 From: Waldo Jaquith Date: Sun, 23 Jun 2019 09:50:23 -0400 Subject: [PATCH] Start setting up Docker Toward #65. --- deploy/Dockerfile | 10 ++++++++++ docker-compose.yml | 11 +++++++++++ 2 files changed, 21 insertions(+) create mode 100644 deploy/Dockerfile create mode 100644 docker-compose.yml 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