chore(docker): update dockerfile
This commit is contained in:
@@ -67,12 +67,6 @@ RUN echo "zend_extension=xdebug.so" > /usr/local/etc/php/conf.d/xdebug.ini
|
|||||||
# RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
# RUN composer config -g repo.packagist composer https://mirrors.aliyun.com/composer/
|
||||||
# RUN composer install --no-dev --optimize-autoloader --working-dir=/var/www/html
|
# RUN composer install --no-dev --optimize-autoloader --working-dir=/var/www/html
|
||||||
|
|
||||||
|
|
||||||
# 使用 www-data 用户运行 PHP-FPM
|
|
||||||
USER www-data
|
|
||||||
RUN chown -R www-data:www-data /var/www/html
|
|
||||||
RUN chmod -R 755 /var/www/html
|
|
||||||
|
|
||||||
# 暴露端口
|
# 暴露端口
|
||||||
EXPOSE 9000 9003
|
EXPOSE 9000 9003
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user