Skip to content

Commit

Permalink
chore: debug docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Dec 2, 2024
1 parent 6f6668a commit 80703ee
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FROM node:22-alpine as build-stage

WORKDIR /app

RUN corepack enable
COPY .npmrc package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile

COPY . .
RUN pnpm build

# SSR
FROM node:22-alpine as production-stage

WORKDIR /app

RUN apk add tree
COPY --from=build-stage /app/.output ./.output
RUN tree ./.output

CMD ["node", ".output/server/index.mjs"]

0 comments on commit 80703ee

Please sign in to comment.