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"]