mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-09-08 06:08:03 +08:00
This commit is contained in:
parent
29ef0d38de
commit
5adf05c471
@ -1,6 +1,5 @@
|
||||
---
|
||||
kind: pipeline
|
||||
type: docker
|
||||
name: default
|
||||
node:
|
||||
region: cn
|
||||
|
@ -1,8 +1,8 @@
|
||||
# 基础镜像
|
||||
FROM golang:1.22.4-bookworm
|
||||
FROM golang:1.23rc1-bookworm
|
||||
|
||||
# 作者信息
|
||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||
LABEL authors="xiaoqidun"
|
||||
|
||||
# 使用中国软件源
|
||||
RUN sed -i "s|deb.debian.org|mirrors.ustc.edu.cn|g" /etc/apt/sources.list.d/debian.sources
|
||||
|
@ -1,8 +1,8 @@
|
||||
# 基础镜像
|
||||
FROM golang:1.22.4-bookworm
|
||||
FROM golang:1.23rc1-bookworm
|
||||
|
||||
# 作者信息
|
||||
LABEL MAINTAINER="xiaoqidun@gmail.com"
|
||||
LABEL authors="xiaoqidun"
|
||||
|
||||
# 安装编译工具链
|
||||
RUN apt-get update \
|
||||
|
@ -19,17 +19,17 @@ docker run -it --rm ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
||||
|
||||
### linux - bash
|
||||
```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):/usr/src/app -w /usr/src/app ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
||||
```
|
||||
|
||||
### windows - cmd
|
||||
```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%:/usr/src/app -w /usr/src/app ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
||||
```
|
||||
|
||||
### windows - 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}:/usr/src/app" -w /usr/src/app ccr.ccs.tencentyun.com/xiaoqidun/goenv
|
||||
```
|
||||
|
||||
## 在容器内执行命令进行编译
|
||||
|
Loading…
Reference in New Issue
Block a user