From cec792f425ca561eb55f50b185f2e77d09388d72 Mon Sep 17 00:00:00 2001 From: wu <2468489804@qq.com> Date: Mon, 26 Sep 2022 20:53:27 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DDockerfile=E6=97=B6=E5=8C=BA?= =?UTF-8?q?=E5=A4=B1=E6=95=88&APK=E6=BA=90=E6=8C=87=E5=90=91latest-stable&?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0php=E7=9A=84openssl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 269414a..c20eb49 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,18 @@ FROM alpine:latest -ARG DEBIAN_FRONTEND=noninteractive ENV TZ=Asia/Shanghai -RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.ustc.edu.cn/g' /etc/apk/repositories \ +RUN echo 'https://mirrors.ustc.edu.cn/alpine/latest-stable/main/' > /etc/apk/repositories \ + && echo 'https://mirrors.ustc.edu.cn/alpine/latest-stable/community/' >> /etc/apk/repositories \ && apk update \ - && apk --no-cache add -U tzdata && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apk del tzdata + && apk add alpine-conf \ + && /sbin/setup-timezone -z $TZ \ + && apk del alpine-conf RUN apk --no-cache add php81 \ php81-posix \ php81-pcntl \ php81-pgsql \ + php81-openssl \ php81-mbstring \ php81-curl \ php81-phar \