first commit
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
FROM oven/bun:1 AS deps
|
||||
WORKDIR /app
|
||||
COPY package.json bun.lock tsconfig.json vite.config.ts ./
|
||||
COPY packages/sbi-client/package.json packages/sbi-client/package.json
|
||||
COPY apps/csbie/package.json apps/csbie/package.json
|
||||
COPY apps/csbie-server/package.json apps/csbie-server/package.json
|
||||
COPY apps/csbie-ui/package.json apps/csbie-ui/package.json
|
||||
RUN bun install --frozen-lockfile
|
||||
|
||||
FROM deps AS build
|
||||
COPY . .
|
||||
RUN bun --filter @repo/csbie build
|
||||
|
||||
FROM oven/bun:1-slim AS runtime
|
||||
WORKDIR /app
|
||||
ENV NODE_ENV=production
|
||||
COPY --from=build /app/apps/csbie/dist ./apps/csbie/dist
|
||||
COPY --from=build /app/apps/csbie-ui/dist ./apps/csbie-ui/dist
|
||||
COPY --from=build /app/node_modules ./node_modules
|
||||
EXPOSE 8787
|
||||
CMD ["bun", "apps/csbie/dist/index.js"]
|
||||
Reference in New Issue
Block a user