Skip to content

Commit ed71af0

Browse files
committed
chore: 更新Dockerfile以使用Debian基础镜像并优化Java环境设置
1 parent b249897 commit ed71af0

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

dockerfile/daemon.dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,17 +14,19 @@ RUN apk add --no-cache wget &&\
1414
wget --input-file=lib-urls.txt --directory-prefix=production-code/daemon/lib/ &&\
1515
chmod a+x production-code/daemon/lib/*
1616

17-
FROM eclipse-temurin:${EMBEDDED_JAVA_VERSION}-alpine AS temurin-stage
17+
FROM eclipse-temurin:${EMBEDDED_JAVA_VERSION} AS temurin-stage
1818

19-
FROM ghcr.io/linuxserver/baseimage-alpine:edge
19+
FROM ghcr.io/linuxserver/baseimage-debian:trixie
2020

2121
ENV JAVA_HOME=/opt/java/openjdk
2222
COPY --from=temurin-stage $JAVA_HOME $JAVA_HOME
2323
ENV PATH="${JAVA_HOME}/bin:${PATH}"
2424

25-
RUN apk add --no-cache \
25+
RUN apt-get update && \
26+
apt-get install -y --no-install-recommends \
2627
nodejs \
27-
npm
28+
npm && \
29+
rm -rf /var/lib/apt/lists/*
2830

2931
COPY --from=builder /src/production-code/daemon/ /opt/mcsmanager/daemon/
3032

0 commit comments

Comments
 (0)