feat: add BaseTable component for improved table rendering
- Introduced a new BaseTable component to enhance table functionality with sorting and loading states. - Updated upload queue logic to support chunk uploads and improved error handling. - Refactored various admin routes to utilize the new BaseTable component. - Adjusted import paths for UI components to maintain consistency. - Enhanced upload handling with better progress tracking and cancellation support. - Updated theme colors in uno.config.ts for a more cohesive design.
This commit is contained in:
39
Dockerfile
Normal file
39
Dockerfile
Normal file
@@ -0,0 +1,39 @@
|
||||
# ---------- Builder stage ----------
|
||||
FROM oven/bun:1.3.10-alpine AS builder
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy lockfiles & package.json
|
||||
COPY package*.json ./
|
||||
COPY bun.lockb* ./
|
||||
COPY yarn.lock* ./
|
||||
COPY pnpm-lock.yaml* ./
|
||||
|
||||
# Install dependencies (cached)
|
||||
RUN --mount=type=cache,target=/root/.bun bun install
|
||||
|
||||
# Copy source
|
||||
COPY . .
|
||||
|
||||
# Build app (RSBuild output -> dist)
|
||||
RUN bun run build
|
||||
|
||||
|
||||
# ---------- Production stage ----------
|
||||
FROM oven/bun:1.3.10-alpine AS production
|
||||
|
||||
WORKDIR /app
|
||||
|
||||
# Copy built files
|
||||
COPY --from=builder /app/dist ./dist
|
||||
|
||||
ENV NODE_ENV=production
|
||||
# Expose port
|
||||
EXPOSE 3000
|
||||
|
||||
# Optional health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s --retries=3 \
|
||||
CMD wget -qO- http://localhost:3000/ || exit 1
|
||||
|
||||
# Run Bun with fallback install (auto resolves missing deps)
|
||||
CMD [ "bun", "--bun", "dist" ]
|
||||
Reference in New Issue
Block a user