16 lines
356 B
Docker
16 lines
356 B
Docker
FROM alpine:latest
|
|
ENV TZ=Asia/Shanghai
|
|
USER root
|
|
RUN apk --no-cache add tzdata
|
|
# 合并复制指令
|
|
COPY udeskstate /usr/local/bin/
|
|
COPY ./email.json /conf/
|
|
COPY ./wechatwebhook.json /conf/
|
|
COPY ./standby.xlsx /rota/
|
|
|
|
|
|
# 设置执行权限
|
|
RUN chmod +x /usr/local/bin/udeskstate
|
|
|
|
# ENTRYPOINT 指令只有一条,已经是最优
|
|
ENTRYPOINT ["udeskstate"] |