From cb4502ebb780e3a4d61a61bb55cba3c75f4b3115 Mon Sep 17 00:00:00 2001 From: lyz05 <294068487@qq.com> Date: Sat, 10 Dec 2022 23:05:51 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=8D=87=E7=BA=A7node=E7=89=88?= =?UTF-8?q?=E6=9C=AC=EF=BC=8C=E7=B2=BE=E7=AE=80Docker=E9=95=9C=E5=83=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index e0007c4..6c47672 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:14.21.0-alpine3.16 +FROM node:16.18.0-alpine ENV TZ Asia/Shanghai RUN apk add tzdata && cp /usr/share/zoneinfo/${TZ} /etc/localtime \ @@ -10,7 +10,7 @@ LABEL fly_launch_runtime="nodejs" COPY . /app WORKDIR /app -RUN npm install +RUN npm install --production && npm prune --production ENV NODE_ENV production CMD [ "npm", "run", "start" ]