-
Notifications
You must be signed in to change notification settings - Fork 32
docker 打包顺序有些问题 #38
Comments
有道理,我改一下 |
最好常见的包可以一起打包 LABEL maintainer="mreden mreden@163.com" version="2.0" --build-arg timezone=Asia/ShanghaiARG timezone app env: prod pre test devARG app_env=test default use www-data userARG work_user=www-data default APP_ENV = testENV APP_ENV=${app_env:-"test"} Libs -y --no-install-recommendsRUN apt-get update Install PHP extensions
Clean apt cache
Install composerRun curl -sS https://getcomposer.org/installer | php Install redis extension
Install swoole extension
Clear dev deps
Timezone
Install composer depsADD . /var/www/turing_queue |
应该构建镜像的时候进行composer install, 你这边是先install 然后构建镜像,这样就会有一个问题,一般本地环境是没有swoole扩展的,所以第一步就不会成功
The text was updated successfully, but these errors were encountered: