File size: 719 Bytes
97b4a55
 
 
fa7fe4b
 
 
 
97b4a55
fa7fe4b
97b4a55
 
 
 
fa7fe4b
 
 
 
97b4a55
fa7fe4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"]