From 19a28a08c0fd5df3a5663345b733a1e79fa21799 Mon Sep 17 00:00:00 2001 From: Romain Date: Fri, 24 Nov 2017 21:55:26 +1100 Subject: [PATCH] =?UTF-8?q?Basic=20production=20Dockerfile=20(doesn?= =?UTF-8?q?=E2=80=99t=20run=20the=20tests=20yet)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .dockerignore | 1 + Dockerfile | 13 +++++++++++++ 2 files changed, 14 insertions(+) create mode 100644 .dockerignore create mode 100644 Dockerfile diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..3c3629e --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +node_modules diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..c9ba699 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,13 @@ +# Node.js runtime +FROM node:8-alpine + +# Cache all the binary dependencies first +RUN apk add --update ffmpeg graphicsmagick exiftool + +# Install thumbsup globally +ARG THUMBSUP_VERSION=2.x.x +RUN npm install -g thumbsup@${THUMBSUP_VERSION} + +# Default command is thumbsup itself, so we can run +# > docker run thumbsupgallery/thumbsup --input [...] --output [...] +CMD ["thumbsup"]