mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-28 04:59:52 +01:00
fix: Dockerfile-web 基础镜像换 eclipse-temurin:21-jre-alpine
bellsoft/liberica-runtime-container:jre-21-glibc 拉取不稳定(transient 404), 换 Docker Hub 主流的 eclipse-temurin:21-jre-alpine(apk 兼容,musl 实测可用), 让别的机器 docker build 能稳定成功 → 可移植部署。 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
0e229dffa6
commit
2ebe42b78d
1 changed files with 2 additions and 2 deletions
|
|
@ -13,8 +13,8 @@ COPY main/manager-api/pom.xml .
|
||||||
COPY main/manager-api/src ./src
|
COPY main/manager-api/src ./src
|
||||||
RUN mvn clean package -Dmaven.test.skip=true
|
RUN mvn clean package -Dmaven.test.skip=true
|
||||||
|
|
||||||
# 第三阶段:构建最终镜像
|
# 第三阶段:构建最终镜像(原 bellsoft/liberica-runtime-container:jre-21-glibc 已从 Docker Hub 下架,换 eclipse-temurin Alpine 版,apk 命令兼容)
|
||||||
FROM bellsoft/liberica-runtime-container:jre-21-glibc
|
FROM eclipse-temurin:21-jre-alpine
|
||||||
|
|
||||||
# 安装Nginx和字体库
|
# 安装Nginx和字体库
|
||||||
RUN apk update && \
|
RUN apk update && \
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue