forked from mirrors/claude-code-usage-dashboard
26 lines
422 B
Docker
26 lines
422 B
Docker
# Use Bun runtime image
|
|
FROM oven/bun:1-alpine
|
|
|
|
# Set working directory
|
|
WORKDIR /app
|
|
|
|
# Copy package files first for better caching
|
|
COPY package.json bun.lock* ./
|
|
|
|
# Install dependencies
|
|
RUN bun install --frozen-lockfile
|
|
|
|
# Copy source code
|
|
COPY . .
|
|
|
|
# Build the application
|
|
RUN bun run build
|
|
|
|
# Expose port
|
|
EXPOSE 3000
|
|
|
|
# Set environment to production
|
|
ENV NODE_ENV=production
|
|
|
|
# Start the application
|
|
CMD ["bun", "start"] |