Commit a73ffcc3 by Yuchao Shen

添加supervisor

parent 238a19ed
...@@ -10,9 +10,10 @@ RUN echo "https://mirrors.aliyun.com/alpine/v3.8/main/" > /etc/apk/repositories ...@@ -10,9 +10,10 @@ RUN echo "https://mirrors.aliyun.com/alpine/v3.8/main/" > /etc/apk/repositories
apk update && \ apk update && \
apk add tzdata && \ apk add tzdata && \
apk add bash && \ apk add bash && \
apk add supervisor && \
/bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \ /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && \
echo 'Asia/Shanghai' >/etc/timezone && \ echo 'Asia/Shanghai' >/etc/timezone && \
mkdir -p ${APP_PATH} mkdir -p ${APP_PATH}
COPY . $APP_PATH COPY . $APP_PATH
ENTRYPOINT ["bash", "./users-docker-run.sh"] ENTRYPOINT ["bash", "./run.sh"]
\ No newline at end of file
./supervisord -c ./supervisor.conf /usr/bin/supervisord -c ./supervisor.conf
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment