Skip to content

Commit ab62202

Browse files
committed
chore: 更新Dockerfile以优化Node.js安装过程
1 parent ed71af0 commit ab62202

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

dockerfile/daemon.dockerfile

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,9 @@ 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 apt-get update && \
26-
apt-get install -y --no-install-recommends \
27-
nodejs \
28-
npm && \
29-
rm -rf /var/lib/apt/lists/*
25+
RUN apt-get update && apt-get install -y curl &&\
26+
curl -fsSL https://deb.nodesource.com/setup_20.x | bash &&\
27+
apt-get update && apt-get install -y nodejs && apt-get clean
3028

3129
COPY --from=builder /src/production-code/daemon/ /opt/mcsmanager/daemon/
3230

0 commit comments

Comments
 (0)