13 lines
259 B
Docker
13 lines
259 B
Docker
|
FROM alpine:latest
|
||
|
ENV TZ=Asia/Shanghai
|
||
|
USER root
|
||
|
|
||
|
# 合并复制指令
|
||
|
COPY udeskstate /usr/local/bin/ \
|
||
|
./*.json /conf/
|
||
|
|
||
|
# 设置执行权限
|
||
|
RUN chmod +x /usr/local/bin/udeskstate
|
||
|
|
||
|
# ENTRYPOINT 指令只有一条,已经是最优
|
||
|
ENTRYPOINT ["udeskstate"]
|