diff --git a/Dockerfile b/Dockerfile index ee34116..6156784 100644 --- a/Dockerfile +++ b/Dockerfile @@ -49,6 +49,10 @@ WORKDIR /app COPY --from=builder /app/sms-receiver . COPY --from=builder /app/config.example.yaml config.yaml +# 复制运行时需要的目录(模板和静态资源) +COPY --from=builder /app/templates ./templates +COPY --from=builder /app/static ./static + # 创建数据目录并设置权限 RUN mkdir -p /app/data /app/logs && \ chown -R appuser:appuser /app