mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-11-23 16:46:45 +08:00
Compare commits
No commits in common. "cb354523aceb026638e11dd6db81989e5b292519" and "902a8f847fc45b3723d05d374750cb68a60c22ef" have entirely different histories.
cb354523ac
...
902a8f847f
@ -1,5 +1,5 @@
|
|||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM golang:1.21.0-bookworm
|
FROM golang:1.20.7-bookworm
|
||||||
|
|
||||||
# 作者信息
|
# 作者信息
|
||||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
# 基础镜像
|
# 基础镜像
|
||||||
FROM golang:1.21.0-bookworm
|
FROM golang:1.20.7-bookworm
|
||||||
|
|
||||||
# 作者信息
|
# 作者信息
|
||||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||||
|
10
README.md
10
README.md
@ -5,12 +5,12 @@ golang environment
|
|||||||
|
|
||||||
## 拉取镜像
|
## 拉取镜像
|
||||||
```
|
```
|
||||||
docker pull ccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
|
docker pull hkccr.ccs.tencentyun.com/xiaoqidun/goenv:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
## 运行镜像
|
## 运行镜像
|
||||||
```
|
```
|
||||||
docker run -it --rm ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
docker run -it --rm hkccr.ccs.tencentyun.com/xiaoqidun/goenv
|
||||||
```
|
```
|
||||||
|
|
||||||
# 编译项目
|
# 编译项目
|
||||||
@ -19,17 +19,17 @@ docker run -it --rm ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
|||||||
|
|
||||||
### linux - bash
|
### linux - bash
|
||||||
```shell
|
```shell
|
||||||
docker run --rm -it -v $(pwd):/go/src/app -w /go/src/app ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
docker run --rm -it -v $(pwd):/go/src/app -w /go/src/app hkccr.ccs.tencentyun.com/xiaoqidun/goenv
|
||||||
```
|
```
|
||||||
|
|
||||||
### windows - cmd
|
### windows - cmd
|
||||||
```bat
|
```bat
|
||||||
docker run --rm -it -v %cd%:/go/src/app -w /go/src/app ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
docker run --rm -it -v %cd%:/go/src/app -w /go/src/app hkccr.ccs.tencentyun.com/xiaoqidun/goenv
|
||||||
```
|
```
|
||||||
|
|
||||||
### windows - powershell
|
### windows - powershell
|
||||||
```powershell
|
```powershell
|
||||||
docker run --rm -it -v "${pwd}:/go/src/app" -w /go/src/app ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
docker run --rm -it -v "${pwd}:/go/src/app" -w /go/src/app hkccr.ccs.tencentyun.com/xiaoqidun/goenv
|
||||||
```
|
```
|
||||||
|
|
||||||
## 在容器内执行命令进行编译
|
## 在容器内执行命令进行编译
|
||||||
|
Loading…
x
Reference in New Issue
Block a user