forked from hechuan4/BiliFavoritesDownloader
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
41 lines (31 loc) · 943 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#
# BilibiliDownloader Dockerfile
#
# https://github.com/ljq29/BilibiliDownloader
#
FROM python:alpine3.17
VOLUME "/BilibiliDownloads"
VOLUME "/app_config"
RUN mkdir -p /usr/src/app
RUN apk add --no-cache wget
# 下载lux
#RUN apt install python3 python3-pip ffmpeg -y
RUN wget https://github.com/iawia002/lux/releases/download/v0.15.0/lux_0.15.0_Linux_64-bit.tar.gz\
&& tar -zxvf lux*.tar.gz \
&& chmod 0777 lux \
&& cp lux /usr/local/bin/ \
&& rm -rf lux*
RUN lux -v
RUN wget https://github.com/ljq29/BilibiliDownloader/archive/refs/heads/main.zip
RUN tar -zxvf main*.zip \
&& cp main /usr/src/app/ \
&& rm -rf main*
RUN apk add --no-cache ffmpeg
COPY ./requirements.txt /usr/src/app/
RUN pip install --upgrade pip && pip install --no-cache-dir -r /usr/src/app/requirements.txt
WORKDIR /usr/src/app
RUN apk del wget
# EXPOSE 8080
ENV YOUTUBE_DL=$YOUTUBE_DL
ENV YDL_CONFIG_PATH='/app_config'
CMD [ "./docker_run.sh" ]