This commit is contained in:
2026-09-03 11:28:30 +07:00 Unverified
parent 26c2d0f015
commit 82d0fe3e0d
93 changed files with 19237 additions and 1285 deletions
+20
View File
@@ -0,0 +1,20 @@
FROM oven/bun:1-alpine AS build
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile
COPY const.ts tsconfig.json ./
COPY lib ./lib
COPY schema ./schema
COPY server ./server
COPY shared ./shared
RUN bun build server/index.ts --target bun --minify --outfile dist/kuber-server.js
FROM oven/bun:1-alpine
WORKDIR /app
COPY --from=build /app/dist/kuber-server.js ./kuber-server.js
USER bun
EXPOSE 3000
CMD ["bun", "kuber-server.js"]