ytdl-backend/Dockerfile

9 lines
299 B
Docker
Raw Normal View History

2019-08-12 23:39:49 +00:00
FROM node:lts-alpine
WORKDIR /data
COPY . .
RUN apk add --no-cache ffmpeg python python3 curl wget \
&& curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl \
&& chmod a+rx /usr/local/bin/youtube-dl \
&& npm install --prod
EXPOSE 10230
CMD ["npm", "run", "start"]