Add Dockerfile.prod

This commit is contained in:
2025-07-07 17:17:19 +05:00
parent b7e8a033c3
commit 976d6dba8e
4 changed files with 133 additions and 7 deletions

20
Dockerfile.prod Normal file
View File

@ -0,0 +1,20 @@
# Build
FROM oven/bun:1 AS build
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --ignore-scripts
COPY . .
RUN bun --bun run build
# Launch
FROM oven/bun:1 AS production
WORKDIR /app
COPY --from=build /app/.output /app
EXPOSE 80/tcp
ENTRYPOINT [ "bun", "--bun", "run", "/app/server/index.mjs" ]