Update Dockerfile
This commit is contained in:
+13
-11
@@ -4,16 +4,16 @@ FROM ${BASE_IMAGE}
|
|||||||
USER root
|
USER root
|
||||||
|
|
||||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
gnupg \
|
gnupg \
|
||||||
python3 \
|
python3 \
|
||||||
python3-yaml \
|
python3-yaml \
|
||||||
make \
|
make \
|
||||||
g++ \
|
g++ \
|
||||||
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
&& curl -fsSL https://deb.nodesource.com/setup_22.x | bash - \
|
||||||
&& apt-get install -y --no-install-recommends nodejs \
|
&& apt-get install -y --no-install-recommends nodejs \
|
||||||
&& rm -rf /var/lib/apt/lists/*
|
&& rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
|
|
||||||
@@ -30,4 +30,6 @@ ENV HERMES_HOME=/home/agent/.hermes
|
|||||||
|
|
||||||
EXPOSE 6060
|
EXPOSE 6060
|
||||||
|
|
||||||
CMD ["node", "dist/server/index.js"]
|
# 强制覆盖基础镜像的默认启动脚本,让镜像本身具备独立运行的能力
|
||||||
|
ENTRYPOINT ["node", "dist/server/index.js"]
|
||||||
|
CMD []
|
||||||
|
|||||||
Reference in New Issue
Block a user