feat: functional download server

using micro
This commit is contained in:
2019-09-27 12:16:40 -07:00
parent b66eb8abe7
commit eb35ae5dfd
7 changed files with 358 additions and 23 deletions

View File

@@ -1,23 +1,23 @@
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 --upgrade pip \
&& pip3 install youtube-dl
# install app dependencies
WORKDIR /app
RUN npm install -g yarn
COPY package.json yarn.lock ./
RUN yarn install
WORKDIR /app
VOLUME /app/data
COPY --from=0 /build .
ENV NODE_ENV=development
COPY . .
VOLUME /app/data
ENTRYPOINT ["yarn", "start"]