FROM node:16

WORKDIR /usr/src/app

COPY package*.json ./

RUN add-apt-repository --yes ppa:stebbins/handbrake-releases
RUN apt-get update && apt-get install -y handbrake-cli
RUN npm install

COPY . .

CMD [ "npm", "run", "all" ]
