mirror of
https://github.com/xiaoqidun/goenv.git
synced 2024-12-31 00:51:27 +08:00
This commit is contained in:
@ -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
|
||||
```
|
||||
|
||||
## 在容器内执行命令进行编译
|
||||
|
Reference in New Issue
Block a user