FROM node:12-alpine # install/build node modules, with full c build chain WORKDIR /app # install youtube-dl RUN set -xe \ && apk add --no-cache ca-certificates \ ffmpeg \ openssl \ python3 \ && pip3 install youtube-dl # install app dependencies RUN npm install -g yarn COPY package.json yarn.lock ./ RUN yarn install WORKDIR /app VOLUME /app/data COPY --from=0 /build . COPY . . ENTRYPOINT ["yarn", "start"]