feat(global): initialize project and framework structure, dockerize

This commit is contained in:
h
2025-09-02 00:03:50 +03:00
parent 3194237f5f
commit 2e9bfc888f
26 changed files with 422 additions and 113 deletions

25
Dockerfile Normal file
View File

@@ -0,0 +1,25 @@
FROM oven/bun:1-alpine AS build
ENV TERM=xterm-256color
ENV COLORTERM=truecolor
WORKDIR /app
RUN apk add nodejs npm
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production --ignore-scripts
COPY . .
RUN bun install
RUN bun --bun run build
FROM oven/bun:1-alpine AS productions
WORKDIR /app
COPY --from=build /app/.output /app
ENTRYPOINT [ "bun", "--bun", "run", "/app/server/index.mjs" ]