# Use the official Bun image FROM oven/bun:1.1 # Install dependencies for Puppeteer (Chromium) RUN apt-get update && \ apt-get install -y \ wget \ ca-certificates \ fonts-liberation \ libasound2 \ libatk-bridge2.0-0 \ libatk1.0-0 \ libcups2 \ libdbus-1-3 \ libdrm2 \ libgbm1 \ libgtk-3-0 \ libnspr4 \ libnss3 \ libx11-xcb1 \ libxcomposite1 \ libxdamage1 \ libxrandr2 \ xdg-utils \ --no-install-recommends && \ rm -rf /var/lib/apt/lists/* # Set working directory WORKDIR /app # Copy package files and install dependencies COPY bun.lockb package.json ./ RUN bun install # Copy the rest of your app COPY . . # Expose the port your app runs on (change if needed) EXPOSE 3000 # Start the server CMD ["bun", "run", "start"]