feat: functional download server
using micro
This commit is contained in:
12
Dockerfile
12
Dockerfile
@@ -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"]
|
||||
|
||||
Reference in New Issue
Block a user