add docker compose support

This commit is contained in:
sunxyw
2022-12-16 15:29:10 +08:00
parent 635f081437
commit daa07dcb2b
5 changed files with 131 additions and 0 deletions

14
docker/zhamao/Dockerfile Normal file
View File

@@ -0,0 +1,14 @@
FROM phpswoole/swoole:5.0-php8.1
MAINTAINER sunxyw <me@sunxyw.xyz>
WORKDIR "/bot"
ENV TZ=Asia/Shanghai
EXPOSE 20001-20005
RUN docker-php-ext-install pcntl
ENTRYPOINT [ "./zhamao" ]
CMD [ "server" ]