Skip to content

Commit

Permalink
build: 修改镜像构建
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxi committed Dec 31, 2024
1 parent 8435c10 commit f2f1f43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ COPY --from=builder /app/xiaomusic.py .
COPY --from=builder /app/xiaomusic/__init__.py /base_version.py
RUN touch /app/.dockerenv

COPY supervisor.conf /etc/supervisor.conf
COPY supervisord.conf /etc/supervisor/supervisord.conf

VOLUME /app/conf
VOLUME /app/music
EXPOSE 8090
ENV TZ=Asia/Shanghai
ENV PATH=/app/.venv/bin:$PATH

CMD ["/bin/sh", "-c", "/usr/bin/supervisord -c /etc/supervisor.conf && tail -F /app/supervisord.log /app/xiaomusic.log.txt"]
CMD ["/bin/sh", "-c", "/usr/bin/supervisord -c /etc/supervisor/supervisord.conf && tail -F /app/supervisord.log /app/xiaomusic.log.txt"]
4 changes: 2 additions & 2 deletions supervisor.conf → supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ autostart=true
autorestart=true
startretries=99999
startsecs=60
stderr_logfile=AUTO ; 将错误日志输出到 supervisord 控制台
stdout_logfile=AUTO ; 将标准日志输出到 supervisord 控制台
stderr_logfile=/app/xiaomusic.log.txt
stdout_logfile=/app/xiaomusic.log.txt

0 comments on commit f2f1f43

Please sign in to comment.