Update Dockerfile
Browse files- Dockerfile +9 -0
Dockerfile
CHANGED
@@ -5,6 +5,15 @@ FROM php:7.4-apache
|
|
5 |
ENV LANG C.UTF-8
|
6 |
ENV LC_ALL C.UTF-8
|
7 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
8 |
# 定义一个构建参数,用于接收传递的Apache访问口令
|
9 |
ARG APACHE_PASSWORD
|
10 |
|
|
|
5 |
ENV LANG C.UTF-8
|
6 |
ENV LC_ALL C.UTF-8
|
7 |
|
8 |
+
# 安装系统依赖
|
9 |
+
RUN apt-get update && apt-get install -y \
|
10 |
+
libzip-dev \
|
11 |
+
zip \
|
12 |
+
&& docker-php-ext-install zip
|
13 |
+
|
14 |
+
# 清理缓存
|
15 |
+
RUN apt-get clean && rm -rf /var/lib/apt/lists/*
|
16 |
+
|
17 |
# 定义一个构建参数,用于接收传递的Apache访问口令
|
18 |
ARG APACHE_PASSWORD
|
19 |
|