Skip to content

Commit

Permalink
chore: switch to dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
nekomeowww committed Dec 2, 2024
1 parent 43623a6 commit f034134
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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

COPY --from=build-stage /app/.output ./.output

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

0 comments on commit f034134

Please sign in to comment.