👷 ci: configures Docker build and publish workflow

This commit is contained in:
2025-08-08 18:20:18 +07:00
parent 3b9877d257
commit 00afcd84f3
4 changed files with 39 additions and 66 deletions
+2 -9
View File
@@ -1,18 +1,11 @@
FROM oven/bun:1.2.15 AS build
FROM oven/bun:1.2.15
WORKDIR /app
COPY package.json bun.lock ./
RUN bun install
COPY src ./src
RUN bun build src/index.ts --outdir ./dist --target bun
FROM oven/bun:1.2.15-slim
WORKDIR /app
COPY --from=build /app/dist/index.js ./
COPY --from=build /app/package.json ./
EXPOSE 3000
CMD ["bun", "run", "index.js"]
CMD ["bun", "run", "src/index.ts"]