File size: 965 Bytes
312898d
 
 
 
 
 
 
da6e788
312898d
f3a9d55
 
 
 
312898d
f3a9d55
312898d
 
f3a9d55
312898d
 
 
006506c
 
 
 
 
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
FROM fuqingxu/bbdown

RUN apt update && apt-get install -y python3 python3-dev python3-pip

RUN python3 -m pip install fastapi pydantic loguru --break-system-packages
RUN python3 -m pip install requests python-multipart --break-system-packages
RUN python3 -m pip install uvicorn --break-system-packages
RUN python3 -m pip install tenacity --break-system-packages

# 为了让user用户可以访问/root目录
RUN useradd -m -u 1000 user
RUN chown -R user:user /root
USER user

COPY ./docker_as_a_service /docker_as_a_service
WORKDIR /docker_as_a_service


# ENTRYPOINT [ "python3", "docker_as_a_service.py" ]
ENTRYPOINT ["/bin/bash", "-c"]
CMD ["python3 docker_as_a_service.py"]
# CMD ["python3", "docker_as_a_service.py"]
# docker build -t testbbdown .
# docker run --rm -it -p 49000:49000 testbbdown
# docker run --rm -it -p 49000:49000 --name funnn  testbbdown bash
# /root/.dotnet/tools/BBDown BV1LSSHYXEtv --audio-only --use-app-api --work-dir /tmp/tmp9lrn38wb