updates for bun and docker

update libs
This commit is contained in:
2026-01-12 16:09:22 +03:00
parent 9d9f930ff7
commit abccbf3ebf
6 changed files with 60 additions and 562 deletions
+8 -7
View File
@@ -6,10 +6,9 @@ COPY package*.json bun.lock ./
RUN bun install --frozen-lockfile
COPY . .
RUN bun run bun:build
RUN bun run build
# only prod dependencies
RUN rm -rf node_modules && bun install --frozen-lockfile --production
RUN bunx tsc -p tsconfig.build.json
# ---- runtime ----
FROM oven/bun:alpine AS runner
@@ -18,8 +17,10 @@ WORKDIR /app
ENV NODE_ENV=production
ENV IS_DOCKER=true
COPY --from=builder /app/package*.json ./
COPY --from=builder /app/node_modules ./node_modules
COPY --from=builder /app/dist ./dist
COPY package.json bun.lock ./
RUN bun install --frozen-lockfile --production
CMD [ "node", "dist/index.js" ]
COPY --from=builder /app/dist ./dist
COPY --from=builder /app/assets ./assets
CMD [ "bun", "dist/index.js" ]