Skip to content

Commit

Permalink
Update Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
zhang19980518 authored Nov 3, 2023
1 parent fb4934d commit 5499dc7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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

Expand All @@ -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

Expand All @@ -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

Expand Down

0 comments on commit 5499dc7

Please sign in to comment.