mirror of
https://github.com/Evil0ctal/Douyin_TikTok_Download_API.git
synced 2025-04-19 12:14:48 +08:00
Update Dockerfile
This commit is contained in:
parent
28c32135ee
commit
703be52f1b
29
Dockerfile
29
Dockerfile
@ -1,17 +1,18 @@
|
|||||||
# Credits
|
FROM ubuntu:jammy
|
||||||
# https://github.com/jw-star
|
MAINTAINER jwstar
|
||||||
FROM python:3.10.5-slim-buster
|
ENV DEBIAN_FRONTEND=noninteractive
|
||||||
MAINTAINER evil0ctal (https://hub.docker.com/repository/docker/evil0ctal/douyin_tiktok_download_api/general)
|
|
||||||
RUN apt-get update
|
|
||||||
RUN apt-get -y install gcc
|
|
||||||
RUN apt-get -y install nodejs
|
|
||||||
RUN apt-get -y install npm
|
|
||||||
RUN npm install -y md5
|
|
||||||
COPY . /app
|
|
||||||
RUN pip3 --no-cache-dir install --user -r /app/requirements.txt
|
|
||||||
WORKDIR /app
|
|
||||||
# -u print打印出来
|
|
||||||
|
|
||||||
RUN chmod +x start.sh
|
RUN apt-get -y update \
|
||||||
|
&& apt-get install -y --no-install-recommends \
|
||||||
|
python3.11 python3-pip python3.11-dev nodejs
|
||||||
|
|
||||||
|
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"]
|
CMD ["./start.sh"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user