Update Dockerfiles to include libgcc in the Alpine image for improved compatibility with Java applications.
This commit is contained in:
@@ -32,7 +32,7 @@ RUN mvn package -DskipTests -B -q
|
||||
# ========== 阶段三:运行(单容器,仅 Java) ==========
|
||||
FROM eclipse-temurin:8-jre-alpine
|
||||
|
||||
RUN apk add --no-cache tzdata \
|
||||
RUN apk add --no-cache libgcc tzdata \
|
||||
&& cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime \
|
||||
&& echo "Asia/Shanghai" > /etc/timezone
|
||||
|
||||
|
||||
Reference in New Issue
Block a user