update
This commit is contained in:
19
Dockerfile
19
Dockerfile
@ -1,24 +1,30 @@
|
|||||||
FROM php:7.2.34-fpm-alpine3.12
|
FROM php:7.2.34-fpm-alpine3.12
|
||||||
|
|
||||||
# 环境变量
|
|
||||||
ENV COMPOSER_ALLOW_SUPERUSER=1 \
|
ENV COMPOSER_ALLOW_SUPERUSER=1 \
|
||||||
COMPOSER_HOME=/composer
|
COMPOSER_HOME=/composer \
|
||||||
|
COMPOSER_MEMORY_LIMIT=-1
|
||||||
|
|
||||||
|
# 使用阿里云 Alpine 3.12 存档源
|
||||||
|
RUN echo "https://mirrors.aliyun.com/alpine/v3.12/main" > /etc/apk/repositories \
|
||||||
|
&& echo "https://mirrors.aliyun.com/alpine/v3.12/community" >> /etc/apk/repositories
|
||||||
|
|
||||||
# 安装依赖 + 常用扩展
|
# 安装依赖 + 常用扩展
|
||||||
RUN apk add --no-cache \
|
RUN apk add --no-cache \
|
||||||
bash \
|
bash \
|
||||||
git \
|
|
||||||
curl \
|
curl \
|
||||||
wget \
|
wget \
|
||||||
unzip \
|
unzip \
|
||||||
libzip-dev \
|
libzip-dev \
|
||||||
|
mariadb-connector-c-dev \
|
||||||
openssl \
|
openssl \
|
||||||
openssl-dev \
|
openssl-dev \
|
||||||
pcre \
|
pcre \
|
||||||
pcre-dev \
|
pcre-dev \
|
||||||
zlib \
|
zlib \
|
||||||
zlib-dev \
|
zlib-dev \
|
||||||
icu-dev \
|
oniguruma-dev \
|
||||||
|
autoconf \
|
||||||
|
linux-headers \
|
||||||
build-base \
|
build-base \
|
||||||
&& docker-php-ext-install \
|
&& docker-php-ext-install \
|
||||||
pdo_mysql \
|
pdo_mysql \
|
||||||
@ -36,8 +42,7 @@ RUN apk add --no-cache \
|
|||||||
&& curl -sS https://getcomposer.org/installer | php -- \
|
&& curl -sS https://getcomposer.org/installer | php -- \
|
||||||
--install-dir=/usr/local/bin --filename=composer \
|
--install-dir=/usr/local/bin --filename=composer \
|
||||||
# 清理
|
# 清理
|
||||||
&& apk del build-base \
|
&& 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