mirror of
https://github.com/Kizuren/kizuren.dev.git
synced 2026-01-10 00:17:47 +01:00
15 lines
300 B
Docker
15 lines
300 B
Docker
FROM oven/bun:1.1.13-debian AS build
|
|
WORKDIR /app
|
|
COPY package.json bun.lock ./
|
|
RUN bun install
|
|
COPY . .
|
|
RUN bun run build
|
|
|
|
FROM oven/bun:1.1.13-debian
|
|
WORKDIR /app
|
|
COPY --from=build /app/.output /app/.output
|
|
ENV NODE_ENV=production
|
|
ENV PORT=3000
|
|
|
|
EXPOSE 3000
|
|
CMD ["bun", ".output/server/index.mjs"]
|