Update Dockerfile

This commit is contained in:
大大白 2024-12-08 01:10:00 -05:00 committed by GitHub
parent cfc8a05cba
commit dee7525bb4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,7 +2,6 @@ FROM phpswoole/swoole:php8.1-alpine
COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/ COPY --from=mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
# 安装基础软件包,包括 gettext (提供 envsubst)
RUN install-php-extensions pcntl bcmath inotify \ RUN install-php-extensions pcntl bcmath inotify \
&& apk --no-cache add shadow supervisor nginx sqlite nginx-mod-http-brotli mysql-client git patch gettext \ && apk --no-cache add shadow supervisor nginx sqlite nginx-mod-http-brotli mysql-client git patch gettext \
&& addgroup -S -g 1000 www && adduser -S -G www -u 1000 www && addgroup -S -g 1000 www && adduser -S -G www -u 1000 www
@ -12,6 +11,7 @@ WORKDIR /www
# 复制项目文件和配置文件 # 复制项目文件和配置文件
COPY .docker / COPY .docker /
COPY .env.example /www/.env.example
COPY . /www COPY . /www
# 生成环境变量文件并安装依赖 # 生成环境变量文件并安装依赖