diff --git a/Dockerfile b/Dockerfile index 6c03744..d7c06d4 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,15 +4,18 @@ FROM node:buster-slim WORKDIR /src/ - - COPY package.json package.json RUN ls -la -# installs pandoc +# installs ffmpeg and gifski v 1.3.3 RUN apt-get update && \ - apt-get install ffmpeg -y + apt-get install ffmpeg -y && \ + apt-get install wget -y && \ + cd /root && \ + wget https://github.com/jrtechs/static-storage/raw/master/gifski.deb && \ + dpkg -i /root/gifski.deb && \ + rm /root/gifski.deb # installs node dependencies RUN npm install diff --git a/videoManager.js b/videoManager.js index 1ed545a..9a14566 100644 --- a/videoManager.js +++ b/videoManager.js @@ -22,8 +22,8 @@ function createIndex(filename, videos, templateKey) { input: filename, output: icon, - width: 128, - numFrames: 40 + width: 500, + numFrames: 60 }; console.log(options); generatePreview(options).then(function(metaData)