Files
youtube-dl-web/Dockerfile
2019-09-27 10:37:02 -07:00

24 lines
498 B
Docker

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