Files
2025-11-21 14:48:42 +08:00

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"]