Update Dockerfile

This commit is contained in:
17_bzhzq 2023-03-10 17:04:00 +08:00 committed by GitHub
parent 28c32135ee
commit 703be52f1b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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"]