Refresh k8s docker versions and references

This commit is contained in:
yeasy
2026-04-21 20:57:33 -07:00
parent 4b93651989
commit c9c72618c3
26 changed files with 379 additions and 98 deletions
+2 -2
View File
@@ -24,8 +24,8 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: actions/checkout@v6
- uses: docker/setup-buildx-action@v4
- uses: docker/build-push-action@v6
with:
context: .
+7 -7
View File
@@ -171,7 +171,7 @@ RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
-o app .
# 最终镜像
FROM alpine:3.17
FROM alpine:3.21
RUN apk add --no-cache ca-certificates tzdata
@@ -233,7 +233,7 @@ name = "rust-app"
path = "src/main.rs"
[dependencies]
actix-web = "4.4"
actix-web = "4.13"
tokio = { version = "1.35", features = ["full"] }
serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
@@ -242,7 +242,7 @@ serde_json = "1.0"
```dockerfile
# Stage 1: 编译
FROM rust:1.75-alpine AS builder
FROM rust:1.95-alpine AS builder
RUN apk add --no-cache musl-dev
@@ -255,7 +255,7 @@ COPY src ./src
RUN cargo build --release
# Stage 2: 运行镜像
FROM alpine:3.17
FROM alpine:3.21
RUN apk add --no-cache ca-certificates
@@ -499,7 +499,7 @@ binlog_format = ROW
#### Redis 缓存部署
```dockerfile
FROM redis:7-alpine
FROM redis:8-alpine
# 复制 Redis 配置
COPY redis.conf /usr/local/etc/redis/redis.conf
@@ -632,7 +632,7 @@ services:
# Redis 缓存
redis:
image: redis:7-alpine
image: redis:8-alpine
container_name: redis
command: redis-server --appendonly yes --requirepass redispass
volumes:
@@ -848,7 +848,7 @@ services:
- postgres_data:/var/lib/postgresql/data
redis:
image: redis:7-alpine
image: redis:8-alpine
volumes:
postgres_data: