| FROM ubuntu:24.04 |
|
|
| ENV TZ=Asia/Shanghai |
| ENV PYTHONUNBUFFERED=1 |
| ENV RUNTIME_DIR=/tmp/runtime |
| ENV SUPERVISOR_CONF=/etc/supervisord.conf |
| ENV SUPERVISOR_CONF_TEMPLATE=/etc/supervisord.conf.template |
| ENV STOP_WAIT_SECS=60 |
|
|
| RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ |
| && echo $TZ > /etc/timezone \ |
| && apt-get update \ |
| && DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends ca-certificates curl supervisor \ |
| && rm -rf /var/lib/apt/lists/* |
|
|
| COPY entrypoint.sh /usr/local/bin/entrypoint.sh |
| COPY scripts/release-common.sh /usr/local/bin/release-common.sh |
| COPY scripts/update-loop.sh /usr/local/bin/update-loop.sh |
| COPY supervisord.conf /etc/supervisord.conf.template |
| RUN chmod +x /usr/local/bin/entrypoint.sh /usr/local/bin/release-common.sh /usr/local/bin/update-loop.sh |
|
|
| ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] |
|
|