mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-23 16:45:35 +08:00
add Dockerfile
This commit is contained in:
16
Dockerfile
Normal file
16
Dockerfile
Normal 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"]
|
||||||
Reference in New Issue
Block a user