luthersystems/build-godynamic本镜像为Luther平台设计,提供集成Golang环境的动态链接构建容器,旨在支持Luther平台相关应用的编译构建流程,确保应用通过动态链接方式编译,满足Luther平台的运行时依赖要求。
-buildmode=pie等),生成动态链接可执行文件通过docker run命令启动容器,挂载项目目录并执行构建命令:
bashdocker run --rm -v /path/to/your/project:/app luther-golang-dynamic-build:latest \ sh -c "cd /app && go build -buildmode=pie -o app-luther /app/main.go"
--rm:构建完成后自动删除容器-v /path/to/your/project:/app:将本地项目目录挂载到容器内/app路径luther-golang-dynamic-build:latest:镜像名称及标签-buildmode=pie为动态链接模式之一)在CI/CD配置文件(如GitLab CI、GitHub Actions)中使用:
yaml# 示例:GitLab CI配置片段 build_luther_app: stage: build image: luther-golang-dynamic-build:latest script: - cd /app - go build -buildmode=pie -o app-luther main.go artifacts: paths: - app-luther
luther-golang-dynamic-build:1.21)探索更多轩辕镜像的使用方法,找到最适合您系统的配置方式
通过 Docker 登录认证访问私有仓库
无需登录使用专属域名
Kubernetes 集群配置 Containerd
K3s 轻量级 Kubernetes 镜像加速
VS Code Dev Containers 配置
Podman 容器引擎配置
HPC 科学计算容器配置
ghcr、Quay、nvcr 等镜像仓库
Harbor Proxy Repository 对接专属域名
Portainer Registries 加速拉取
Nexus3 Docker Proxy 内网缓存
需要其他帮助?请查看我们的 常见问题Docker 镜像访问常见问题解答 或 提交工单
manifest unknown
no matching manifest(架构)
invalid tar header(解压)
TLS 证书失败
DNS 超时
410 Gone 排查
402 与流量用尽
401 认证失败
429 限流
D-Bus 凭证提示
413 与超大单层
来自真实用户的反馈,见证轩辕镜像的优质服务