From 5499dc7a722d327c48fd66f1c616faf41e9fc194 Mon Sep 17 00:00:00 2001 From: zhang19980518 <35387407+zhang19980518@users.noreply.github.com> Date: Fri, 3 Nov 2023 16:50:08 +0800 Subject: [PATCH] Update Dockerfile --- Dockerfile | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Dockerfile b/Dockerfile index 1c73771..1878ea1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,5 +1,5 @@ # build front-end -FROM node:lts-alpine AS frontend +FROM node:18.18.2 AS frontend RUN npm install pnpm -g @@ -9,14 +9,14 @@ COPY ./package.json /app COPY ./pnpm-lock.yaml /app -RUN pnpm install +RUN pnpm install --no-frozen-lockfile COPY . /app RUN pnpm run build # build backend -FROM node:lts-alpine as backend +FROM node:18.18.2 as backend RUN npm install pnpm -g @@ -26,14 +26,14 @@ COPY /service/package.json /app COPY /service/pnpm-lock.yaml /app -RUN pnpm install +RUN pnpm install --no-frozen-lockfile COPY /service /app RUN pnpm build # service -FROM node:lts-alpine +FROM node:18.18.2 RUN npm install pnpm -g @@ -43,7 +43,7 @@ COPY /service/package.json /app COPY /service/pnpm-lock.yaml /app -RUN pnpm install --production && rm -rf /root/.npm /root/.pnpm-store /usr/local/share/.cache /tmp/* +RUN pnpm install --no-frozen-lockfile --production COPY /service /app