文章目录:
- 目标
- 镜像
- Golang
- Alpine
- 端口映射
- 占用本地端口 8081
- 备注
- Dockerfile
文章使用到的软件:
- Mac 12.0 Beta(macOS Monterey),处理器为:M1
- Docker:20.10.6

目标
- 快速部署 Golang 应用
构建Dockerfile
- Golang 网址[1]
- Alpine 网址[2]
- Goproxy 网址[3]
打包Docker镜像
部署Go程序
我是通过Portainer[4]来运行的,可视化的容器镜像的图形管理工具
方式二:
参考资料
[1]
Golang Docker镜像网址:
[2]
Alpine Docker镜像网址:
[3]
Goproxy 代理网址:
[4]
Portainer 官网: