update
This commit is contained in:
@ -1,12 +1,13 @@
|
|||||||
FROM php:7.2.34-fpm-alpine3.12
|
#FROM php:7.2.34-fpm-alpine3.12
|
||||||
|
FROM php:7.4.33-zts-alpine3.15
|
||||||
|
|
||||||
ENV COMPOSER_ALLOW_SUPERUSER=1 \
|
ENV COMPOSER_ALLOW_SUPERUSER=1 \
|
||||||
COMPOSER_HOME=/composer \
|
COMPOSER_HOME=/composer \
|
||||||
COMPOSER_MEMORY_LIMIT=-1
|
COMPOSER_MEMORY_LIMIT=-1
|
||||||
|
|
||||||
# 使用阿里云 Alpine 3.12 存档源
|
# 使用阿里云 Alpine 3.12 存档源
|
||||||
RUN echo "https://mirrors.aliyun.com/alpine/v3.12/main" > /etc/apk/repositories \
|
RUN echo "https://mirrors.aliyun.com/alpine/v3.15/main" > /etc/apk/repositories \
|
||||||
&& echo "https://mirrors.aliyun.com/alpine/v3.12/community" >> /etc/apk/repositories
|
&& echo "https://mirrors.aliyun.com/alpine/v3.15/community" >> /etc/apk/repositories
|
||||||
|
|
||||||
# 安装依赖 + 常用扩展
|
# 安装依赖 + 常用扩展
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
@ -45,4 +46,4 @@ RUN apk add --no-cache \
|
|||||||
&& apk del build-base autoconf linux-headers \
|
&& apk del build-base autoconf linux-headers \
|
||||||
&& rm -rf /tmp/pear ~/.pearrc /var/cache/apk/*
|
&& rm -rf /tmp/pear ~/.pearrc /var/cache/apk/*
|
||||||
|
|
||||||
WORKDIR /var/www/html
|
WORKDIR /www/wwwroot/admin
|
||||||
|
Reference in New Issue
Block a user