This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
zhangyang-variable-monitor/Dockerfile
2023-12-05 02:41:55 -05:00

19 lines
675 B
Docker

# 使用最小的 alpine 镜像作为基础
# FROM debian
FROM rockylinux:8.8.20230518
# copy 并安装 /root/diagnose-tools/rpmbuild/RPMS/x86_64/diagnose-tools-2.1-release.el8.x86_64.rpm
# 拷贝 RPM 文件到 Docker 镜像中
# COPY /diagnose-tools-2.1-release.el8.x86_64.rpm
# 安装 RPM 文件
# RUN dnf install -y /diagnose-tools-2.1-release.el8.x86_64.rpm && \
# rm -f /diagnose-tools-2.1-release.el8.x86_64.rpm
# 拷贝本地的 ./build/userstack 可执行文件到镜像的根目录
COPY build/userstack /userstack
# 使拷贝进去的 userstack 文件可执行
RUN ls /
RUN chmod +x /userstack
# 设置容器启动时运行的命令
ENTRYPOINT ["/userstack"]