add Dockerfile

This commit is contained in:
whale 2020-03-05 14:50:19 +08:00
parent f6f0d45f79
commit e564f0d449

16
Dockerfile Normal file
View File

@ -0,0 +1,16 @@
FROM phpswoole/swoole:4.4.15-php7.3
WORKDIR /app/
RUN echo "Asia/Shanghai" > /etc/timezone
#RUN dpkg-configure -f noninteractive tzdata
ENV LANG C.UTF_8
RUN apt update && apt install wget -y
VOLUME ["/app/"]
ADD . /app/zhamao-framework
RUN cd /app/zhamao-framework && composer update && composer clearcache
#RUN mv zhamao-framework-master zhamao-framework
WORKDIR /app/zhamao-framework
EXPOSE 20001
CMD ["php", "/app/zhamao-framework/bin/start", "framework", "--disable-console-input"]