mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-02 14:25:38 +08:00
initial commit
This commit is contained in:
@@ -1,19 +0,0 @@
|
||||
FROM php:7.2
|
||||
WORKDIR /root
|
||||
RUN echo "Asia/Shanghai" > /etc/timezone
|
||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||
ENV LANG C.UTF-8
|
||||
RUN apt-get update && apt-get install curl libxml2 libzip-dev openssl git -y
|
||||
|
||||
# Install php extensions
|
||||
RUN docker-php-ext-install zip
|
||||
RUN docker-php-ext-install mysqli
|
||||
RUN docker-php-ext-install iconv
|
||||
RUN docker-php-ext-install mbstring
|
||||
|
||||
RUN pecl install swoole
|
||||
RUN docker-php-ext-enable swoole
|
||||
|
||||
VOLUME ["/root/"]
|
||||
|
||||
CMD if [ ! -d "CQBot-swoole" ]; then git clone https://github.com/crazywhalecc/CQBot-swoole.git; fi && cd CQBot-swoole/ && bash -c "php start.php"
|
||||
Reference in New Issue
Block a user