Skip to content

Commit

Permalink
ok
Browse files Browse the repository at this point in the history
  • Loading branch information
tuna2134 committed Feb 28, 2024
1 parent 1f17c19 commit 5896bd0
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,11 @@ FROM node:20-slim as base

WORKDIR /app

COPY package.json pnpm-lock.yaml ,
RUN corepack enable
COPY package.json pnpm-lock.yaml .

FROM base as build

RUN corepack enable

RUN pnpm install --frozen-lockfile

COPY . .
Expand All @@ -22,7 +21,7 @@ FROM node:20-slim
WORKDIR /app

COPY package.json pnpm-lock.yaml ./
COPY --from=build /build/node_modules ./node_modules
COPY --from=build /build/dist .
COPY --from=installer /app/node_modules ./node_modules
COPY --from=build /app/dist .

CMD ["node", "index.js"]

0 comments on commit 5896bd0

Please sign in to comment.