feature: add unzip for composer install

This commit is contained in:
kriss 2022-05-26 14:53:45 +08:00
parent 4153ca39c2
commit 65bb536d49
2 changed files with 11 additions and 2 deletions

View File

@ -8,7 +8,7 @@ FROM mlocati/php-extension-installer:$PHP_EXTENSION_INSTALL_VERSION AS php-exten
FROM php:$PHP_CLI_VERSION
# 系统依赖安装
RUN apk add --no-cache supervisor
RUN apk add --no-cache supervisor unzip
# PHP 扩展安装
# install-php-extensions https://github.com/mlocati/docker-php-extension-installer

View File

@ -119,4 +119,13 @@ docker build -t {image-name} .
docker run --rm -p 8787:8787 {image-name}
```
访问 http://localhost:8787 即可
访问 http://localhost:8787 即可
## For Developer
修改 Dockerfile 后测试方式:
1. 新建 `.env` 文件,其中配置 `docker-compose.yml` 中的 env 变量
2. 执行build`docker-compose build webman`
3. 本机测试:`docker run --rm -it {ImageName}:{ImageTag} /bin/sh`