From 91ca77ffa8a03c5eaabf9c4295a7fa49e67bf2ca Mon Sep 17 00:00:00 2001 From: aixianling Date: Wed, 16 Oct 2024 16:36:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=B8=80=E4=B8=8B=E9=9B=86?= =?UTF-8?q?=E6=88=90=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/Dockerfile b/Dockerfile index b5f8f1b..da69fcc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,14 +1,10 @@ FROM node:16 LABEL authors="kubbo" -WORKDIR /home/node-service - -RUN chown -R node: /home/node-service -USER node - -COPY --chown=node package*.json /home/node-service - +COPY . /app +WORKDIR /app RUN npm i --registry=http://registry.npmmirror.com -COPY --chown=node . /home/node-service + +EXPOSE 12525 CMD ["node", "index.js"]