From 65bb536d49e112ec37f9289da68a65c5409dd03f Mon Sep 17 00:00:00 2001 From: kriss <462679766@qq.com> Date: Thu, 26 May 2022 14:53:45 +0800 Subject: [PATCH] feature: add unzip for composer install --- Dockerfile | 2 +- README.md | 11 ++++++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0b6c800..867b749 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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 diff --git a/README.md b/README.md index e235adf..9f942a0 100644 --- a/README.md +++ b/README.md @@ -119,4 +119,13 @@ docker build -t {image-name} . docker run --rm -p 8787:8787 {image-name} ``` -访问 http://localhost:8787 即可 \ No newline at end of file +访问 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`