mirror of
https://github.com/lkddi/Xboard.git
synced 2026-04-28 06:47:24 +08:00
chore: update dockerfile
This commit is contained in:
+10
-5
@@ -1,11 +1,16 @@
|
|||||||
FROM phpswoole/swoole:php8.2-alpine
|
FROM phpswoole/swoole:php8.2-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/
|
||||||
RUN install-php-extensions pcntl bcmath zip redis \
|
|
||||||
&& apk --no-cache add shadow sqlite mysql-client mysql-client mysql-dev mariadb-connector-c git patch supervisor redis \
|
# Install PHP extensions one by one with lower optimization level for ARM64 compatibility
|
||||||
&& addgroup -S -g 1000 www && adduser -S -G www -u 1000 www \
|
RUN CFLAGS="-O1" install-php-extensions pcntl && \
|
||||||
&& (getent group redis || addgroup -S redis) \
|
CFLAGS="-O1" install-php-extensions bcmath && \
|
||||||
&& (getent passwd redis || adduser -S -G redis -H -h /data redis)
|
install-php-extensions zip && \
|
||||||
|
install-php-extensions redis && \
|
||||||
|
apk --no-cache add shadow sqlite mysql-client mysql-dev mariadb-connector-c git patch supervisor redis && \
|
||||||
|
addgroup -S -g 1000 www && adduser -S -G www -u 1000 www && \
|
||||||
|
(getent group redis || addgroup -S redis) && \
|
||||||
|
(getent passwd redis || adduser -S -G redis -H -h /data redis)
|
||||||
|
|
||||||
WORKDIR /www
|
WORKDIR /www
|
||||||
COPY .docker /
|
COPY .docker /
|
||||||
|
|||||||
Reference in New Issue
Block a user