mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-03-18 05:04:51 +08:00
add Dockerfile
This commit is contained in:
parent
f6f0d45f79
commit
e564f0d449
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"]
|
||||
Loading…
x
Reference in New Issue
Block a user