mirror of
https://github.com/cedar2025/Xboard.git
synced 2025-02-12 19:48: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
|
||||
|
||||
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 \
|
||||
&& 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)
|
||||
|
||||
# Install PHP extensions one by one with lower optimization level for ARM64 compatibility
|
||||
RUN CFLAGS="-O1" install-php-extensions pcntl && \
|
||||
CFLAGS="-O1" install-php-extensions bcmath && \
|
||||
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
|
||||
COPY .docker /
|
||||
|
Loading…
Reference in New Issue
Block a user