From 0103d89b2206807dda5e39cf7b534df815613bb5 Mon Sep 17 00:00:00 2001 From: huan <1486343814@qq.com> Date: Fri, 9 Aug 2024 10:51:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20dockerfile=E4=B8=ADRUN=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/Dockerfile b/Dockerfile index e211d89..015154d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,11 +2,9 @@ FROM node:18-alpine WORKDIR /app -COPY package*.json ./ -RUN npm install +RUN apk add --no-cache python3 make g++ \ + && npm install COPY . . -EXPOSE 3000 - -CMD ["npm", "start"] \ No newline at end of file +CMD ["npm", "start"]