update Dockerfile

This commit is contained in:
Whale 2018-12-22 16:06:56 +08:00 committed by GitHub
parent 52cc7b1db7
commit bece6865d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,6 @@
FROM php:7.2
WORKDIR /root
ENV LANG="en_US.UTF-8"
RUN apt-get update && apt-get upgrade -y && apt-get install curl libxml2 libzip-dev git -y
# Install php extensions
@ -14,4 +15,4 @@ 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
CMD if [ ! -d "CQBot-swoole" ]; then git clone https://github.com/crazywhalecc/CQBot-swoole.git; fi && cd CQBot-swoole/ && bash