Browse Source

Fixed error where docker container was missing gifski dependency for creating gifs

master
jrtechs 3 years ago
parent
commit
ea5b2d129c
2 changed files with 9 additions and 6 deletions
  1. +7
    -4
      Dockerfile
  2. +2
    -2
      videoManager.js

+ 7
- 4
Dockerfile View File

@ -4,15 +4,18 @@ FROM node:buster-slim
WORKDIR /src/ WORKDIR /src/
COPY package.json package.json COPY package.json package.json
RUN ls -la RUN ls -la
# installs pandoc
# installs ffmpeg and gifski v 1.3.3
RUN apt-get update && \ 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 # installs node dependencies
RUN npm install RUN npm install

+ 2
- 2
videoManager.js View File

@ -22,8 +22,8 @@ function createIndex(filename, videos, templateKey)
{ {
input: filename, input: filename,
output: icon, output: icon,
width: 128,
numFrames: 40
width: 500,
numFrames: 60
}; };
console.log(options); console.log(options);
generatePreview(options).then(function(metaData) generatePreview(options).then(function(metaData)

Loading…
Cancel
Save