Files
youtube-dl-web/Dockerfile
2019-09-27 12:16:40 -07:00

24 lines
470 B
Docker

FROM node:12-alpine
# install youtube-dl
RUN set -xe \
&& apk add --no-cache ca-certificates \
ffmpeg \
openssl \
python3 \
&& pip3 install --upgrade pip \
&& pip3 install youtube-dl
# install app dependencies
WORKDIR /app
RUN npm install -g yarn
COPY package.json yarn.lock ./
RUN yarn install
ENV NODE_ENV=development
COPY . .
VOLUME /app/data
ENTRYPOINT ["yarn", "start"]