mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-12 03:37:05 +08:00
23 lines
569 B
Docker
23 lines
569 B
Docker
FROM ubuntu:jammy
|
|
MAINTAINER jwstar
|
|
ENV DEBIAN_FRONTEND=noninteractive
|
|
|
|
RUN apt-get -y update \
|
|
&& apt-get install -y --no-install-recommends \
|
|
python3.11 python3-pip python3.11-dev
|
|
|
|
# Using Aliyun pipy mirror
|
|
RUN pip3 install -i https://mirrors.aliyun.com/pypi/simple/ -U pip
|
|
RUN pip3 config set global.index-url https://mirrors.aliyun.com/pypi/simple/
|
|
|
|
COPY . /app
|
|
WORKDIR /app
|
|
RUN pip3 --no-cache-dir install --user -r /app/requirements.txt
|
|
|
|
|
|
RUN chmod +x start.sh && \
|
|
apt-get autoremove -y \
|
|
&& apt-get remove -y python3-pip
|
|
|
|
CMD ["./start.sh"]
|