cyp/Dockerfile

13 lines
291 B
Text
Raw Permalink Normal View History

2019-10-28 18:41:14 +08:00
FROM node:10
RUN apt update
RUN apt install -y jq
2020-03-16 06:24:35 +08:00
RUN curl -L https://yt-dl.org/downloads/latest/youtube-dl -o /usr/local/bin/youtube-dl \
&& chmod a+rx /usr/local/bin/youtube-dl
2019-10-28 18:41:14 +08:00
WORKDIR /cyp
COPY package.json .
RUN npm i
COPY index.js .
COPY app ./app
EXPOSE 8080
2019-10-29 17:02:43 +08:00
ENTRYPOINT ["node", "."]