| FROM alpine:3.21 |
|
|
| ENV TZ=Asia/Shanghai |
| 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 apk add --no-cache ca-certificates curl supervisor tzdata \ |
| && ln -snf /usr/share/zoneinfo/$TZ /etc/localtime \ |
| && echo $TZ > /etc/timezone |
|
|
| 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"] |
|
|