From 0d0e4c94ce24a47527a531a66f7604a5a9a032e5 Mon Sep 17 00:00:00 2001 From: bios000 <3540970872@qq.com> Date: Fri, 3 Mar 2023 17:32:01 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E5=AE=98=E6=96=B9=E9=95=9C?= =?UTF-8?q?=E5=83=8F2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ---- docker/entrypoint.sh | 2 ++ 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Dockerfile b/Dockerfile index f63d3e1..17f0218 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,10 +13,6 @@ RUN apk add --no-cache tzdata \ ADD . /Antenna WORKDIR /Antenna -WORKDIR /etc/supervisor.d - -COPY /conf/antenna.ini /etc/supervisor.d/antenna.ini - #RUN pip3 config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple RUN pip3 install -r /Antenna/requirements.txt diff --git a/docker/entrypoint.sh b/docker/entrypoint.sh index c35322a..359f6cc 100755 --- a/docker/entrypoint.sh +++ b/docker/entrypoint.sh @@ -12,5 +12,7 @@ python3 manage.py crontab add echo "crontab add success!" #python3 manage.py runserver 0.0.0.0:80 echo "mv success!" +mkdir /etc/supervisor.d +mv conf/antenna.ini /etc/supervisor.d/antenna.ini unlink /run/supervisor/supervisor.sock supervisord -n -c /etc/supervisord.conf