25 lines
482 B
Docker
25 lines
482 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
|
|
EXPOSE 8080
|
|
ENTRYPOINT ["yarn", "start"]
|