rtsa-services/manager/Dockerfile
soul-walker 505230b26c 1 重构rtsa_mqtt库,添加路由请求响应功能
2 修改库命名rtss->rtsa
2024-10-31 15:12:26 +08:00

22 lines
488 B
Docker

FROM alpine
ENV RUN_MODE=prod
# 安装 tzdata 包
RUN apk add --no-cache tzdata
# 设置时区环境变量,例如设置为 Asia/Shanghai
ENV TZ=Asia/Shanghai
# 复制时区信息到系统时区目录
RUN cp /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR /rtsa
COPY ./target/x86_64-unknown-linux-musl/release/manager ./rtsa_m
COPY ./conf/* ./conf/
COPY ./migrations/* ./migrations/
EXPOSE 8765
CMD ["sh", "-c", "./rtsa_m db migrate && ./rtsa_m serve"]