mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-13 03:58:13 -05:00
chore: update dockerfile
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
Some checks are pending
Docker Build and Publish / build (push) Waiting to run
This commit is contained in:
parent
7c0434d182
commit
85d834432a
15
Dockerfile
15
Dockerfile
@ -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 /
|
||||||
|
Loading…
Reference in New Issue
Block a user