* feat(platform): 开发环境 - 新增 Docker 热更新开发配置 * docs(platform): 开发环境 - 记录 Fork 分支同步流程 * fix(platform): 开发环境 - 避让端口冲突并持久化构建缓存 * fix(platform): 模型渠道 - 改进私网上游配置指引 * docs(platform): 开发环境 - 本机升级流程仅保留在本地手册 * feat(security): 自定义渠道 - 允许白名单主机使用 HTTP 中转 --------- Co-authored-by: sqy941013 <sqy941013@users.noreply.github.com>
15 lines
414 B
Docker
15 lines
414 B
Docker
ARG GO_IMAGE=golang:1.25-alpine
|
|
FROM ${GO_IMAGE}
|
|
|
|
ARG GOPROXY=https://proxy.golang.org,direct
|
|
ARG ALPINE_MIRROR
|
|
ENV GOPROXY=$GOPROXY
|
|
|
|
RUN if [ -n "$ALPINE_MIRROR" ]; then sed -i "s#https://dl-cdn.alpinelinux.org#${ALPINE_MIRROR}#g" /etc/apk/repositories; fi \
|
|
&& apk add --no-cache build-base git \
|
|
&& go install github.com/air-verse/air@v1.63.0
|
|
|
|
WORKDIR /workspace/backend
|
|
|
|
CMD ["air", "-c", ".air.toml"]
|