mirror of
https://github.com/Kizuren/kizuren.dev.git
synced 2025-12-21 21:16:12 +01:00
Reversed to node
This commit is contained in:
parent
edc5386c6d
commit
e39b4f4d58
7 changed files with 17543 additions and 4063 deletions
22
Dockerfile
22
Dockerfile
|
|
@ -1,23 +1,15 @@
|
|||
FROM oven/bun:1 AS builder
|
||||
|
||||
FROM node:22-alpine AS build
|
||||
WORKDIR /app
|
||||
COPY package.json bun.lock ./
|
||||
RUN bun install --frozen-lockfile
|
||||
COPY package*.json ./
|
||||
RUN npm ci
|
||||
COPY . .
|
||||
RUN npm run build
|
||||
|
||||
RUN bun run build
|
||||
|
||||
FROM oven/bun:1-slim AS runner
|
||||
|
||||
FROM node:22-alpine
|
||||
WORKDIR /app
|
||||
COPY --from=build /app/.output /app/.output
|
||||
ENV NODE_ENV=production
|
||||
ENV PORT=3000
|
||||
|
||||
COPY --from=builder /app/.output /app/.output
|
||||
COPY --from=builder /app/package.json ./
|
||||
COPY --from=builder /app/bun.lock ./
|
||||
|
||||
RUN bun install
|
||||
EXPOSE 3000
|
||||
|
||||
CMD ["bun", ".output/server/index.mjs"]
|
||||
CMD ["node", ".output/server/index.mjs"]
|
||||
Loading…
Add table
Add a link
Reference in a new issue