fix: 升级 Go 版本至 1.24,修复 .env 特殊字符转义

This commit is contained in:
2026-06-26 00:05:32 +08:00
parent 717d2c70be
commit 632069216d
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -9,4 +9,5 @@ PORT=:8082
# MySQL 连接串(可选,留空则不记录 prompt)
# 格式: user:password@tcp(host:port)/dbname?parseTime=true
MYSQL_DSN=
# 注意:如果密码包含特殊字符(如 @、括号等),需要用双引号包围整个 DSN
MYSQL_DSN="user:password@tcp(host:port)/dbname?parseTime=true"
+1 -1
View File
@@ -1,4 +1,4 @@
FROM golang:1.22-alpine AS builder
FROM golang:1.24-alpine AS builder
# 使用国内镜像源加速 apk
RUN sed -i 's/dl-cdn.alpinelinux.org/mirrors.aliyun.com/g' /etc/apk/repositories