feat(更新镜像): 更新镜像
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-06-22 23:01:47 +08:00
parent 29ef0d38de
commit 5adf05c471
4 changed files with 7 additions and 8 deletions

View File

@ -1,6 +1,5 @@
---
kind: pipeline
type: docker
name: default
node:
region: cn

View File

@ -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

View File

@ -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 \

View File

@ -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
```
## 在容器内执行命令进行编译