diff --git a/app/Dockerfile_depends b/app/Dockerfile_depends index 817251d..4e1cb48 100644 --- a/app/Dockerfile_depends +++ b/app/Dockerfile_depends @@ -2,11 +2,15 @@ FROM alpine:3.20.3 AS builder RUN apk update && apk upgrade -RUN apk add --update --no-cache curl gcc python3-dev postgresql-dev mysql-client make shadow py3-configobj py3-setuptools -COPY ./python /usr/bin/python +RUN apk add --no-cache curl jq shadow gcc make patch libffi-dev zlib-dev bzip2-dev openssl-dev ncurses-dev sqlite-dev readline-dev gdbm-dev libpcap-dev xz-dev build-base py3-setuptools py3-configobj mysql-client postgresql-dev +RUN wget https://www.python.org/ftp/python/3.8.12/Python-3.8.12.tgz && \ + tar xf Python-3.8.12.tgz +RUN cd Python-3.8.12 && \ + ./configure && \ + make && make install +RUN ln -s /usr/local/bin/python3 /usr/local/bin/python RUN curl -s https://bootstrap.pypa.io/get-pip.py -o /get-pip.py && \ - chmod 777 /usr/bin/python && \ - /usr/bin/python get-pip.py + python get-pip.py # 设置root密码 RUN echo 'root:deepflow' | chpasswd