From 9d618d1fdee21570f77036f0580c4af456507006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=AD=E7=BF=BC=E7=BE=8A=E7=8E=8B?= <1993333339@qq.com> Date: Sun, 7 May 2023 08:36:57 +0000 Subject: [PATCH] update Dockerfile. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 六翼羊王 <1993333339@qq.com> --- Dockerfile | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/Dockerfile b/Dockerfile index 84ff758..65b7e88 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,19 +1,11 @@ -FROM python:3.7-alpine +FROM pearadminflask/python3.7-flask:pillow COPY . /app/ WORKDIR /app/ ENV TIME_ZONE Asia/Shanghai -ENV PIPURL "https://pypi.tuna.tsinghua.edu.cn/simple/ --trusted-host pypi.douban.com" -RUN apk update \ - && apk add --virtual mysqlclient-build gcc python3-dev musl-dev \ - && apk add --no-cache mariadb-dev \ - && apk add --virtual system-build linux-headers libffi-dev \ - && apk add --no-cache jpeg-dev zlib-dev freetype-dev lcms2-dev openjpeg-dev tiff-dev tk-dev tcl-dev \ - && apk add --no-cache bash bash-doc bash-completion \ - && apk add --no-cache libxslt-dev tzdata g++ RUN echo "${TIME_ZONE}" > /etc/timezone \ && ln -sf /usr/share/zoneinfo/${TIME_ZONE} /etc/localtime RUN pip --no-cache-dir install -i ${PIPURL} --upgrade pip \ @@ -24,8 +16,4 @@ RUN chmod +x start.sh RUN sed -i 's/MYSQL_HOST = "127.0.0.1"/MYSQL_HOST = "mysql"/' applications/config.py RUN sed -i 's/REDIS_HOST = "127.0.0.1"/REDIS_HOST = "redis"/' applications/config.py - -WORKDIR /app - - -CMD /bin/sh +CMD /bin/sh \ No newline at end of file